vim - Change recognized filetype of a plugin -
i want use 'plasticboy/vim-markdown' , 'nelstrom/vim-markdown-folding.' require filetype=mkd , filetype-markdown, respectively. there typical way tell plugin recognize filetype?
i've tried changing references of mkd markdown in former , markdown mkd in latter hasn't had effect. of now, can use 1 of plugins because require different filetypes.
the generic names filetype plugins (:help ftplugin-name):
ftplugin/<filetype>.vim ftplugin/<filetype>_<name>.vim ftplugin/<filetype>/<name>.vim therefore, need rename file names (possibly in addition contents in file, though there shouldn't many). since makes upgrading more difficult, can write linker scripts, e.g. ~/.vim/ftplugin/mkd_fold.vim contains following command:
:runtime! ftplugin/markdown_fold.vim
Comments
Post a Comment