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

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -