New answers tagged

3

First you need to create your command as local to a buffer, :h :command-buffer tells us that is what the argument -buffer is for. Then I think it's better to use ftplugins (:h ftplugin) to do this kind of things rather and a Filetype autocommand which just duplicate a built-in mechanism. So you could create ~/.vim/after/ftplugin/rmd.vim and put that in it: ...


Top 50 recent answers are included