vim-pandoc / vim-rmarkdown

Rmarkdown support for vim
98 stars 26 forks source link

Fix ftdetect macro #15

Closed Nicop06 closed 6 years ago

Nicop06 commented 6 years ago

Since vim v7.4.365, all *.Rmd files have the filetype rmd by default while this plugin is expecting rmarkdown filetype. Using set filetype= instead of setf somehow gives the autocmd macro a higher priority and is not overwritten by vim default settings. I tested on vim 8.0.134 only.

This is only a workaround and it does not solve the underlying issue. The best solution would be to use the rmd filetype directly, but this requires more changes.

fmoralesc commented 6 years ago

Good to know. Thanks for the patch.