Open cjber opened 4 years ago
We should recognize whatever filetype (and only whatever filetype) is officially supported upstream in Vim/Neovim. In this case it looks like that is actually rmd
. I don't know what is setting/using rmarkdown
but if it is us we need to stop it and use the right filetype.
Gah. I'd forgotten I'd already been down this rabbit hole!
I'm not proficient with vimscript and vim plugins, but isn't this the place?
If you give your R Markdown file the
.rmd
extension the filetype will be set asrmd
, this plugin requires thermarkdown
filetype, which is given with a.Rmd
extension. As far as I know there isn't any difference between the two and both should be recognised by this plugin.I currently use
autocmd BufRead,BufNewFile *.rmd set filetype=rmarkdown
from #11 to solve this issue.Edit:
Apologies, I had missed that this had been discussed in PR #26. Fwiw I don't have any conflict issues using
filetype=rmd
so I believe merging #26 should be fine, since the pandoc issue doesn't really apply to R Markdown.