Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difference between filetype=rmd and filetype=rmarkdown #28

Open
cjber opened this issue Feb 16, 2020 · 3 comments
Open

Difference between filetype=rmd and filetype=rmarkdown #28

cjber opened this issue Feb 16, 2020 · 3 comments

Comments

@cjber
Copy link

cjber commented Feb 16, 2020

If you give your R Markdown file the .rmd extension the filetype will be set as rmd, this plugin requires the rmarkdown 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.

@alerque
Copy link
Member

alerque commented Feb 17, 2020

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.

@alerque
Copy link
Member

alerque commented Feb 17, 2020

Gah. I'd forgotten I'd already been down this rabbit hole!

@jolars
Copy link

jolars commented Nov 20, 2021

I'm not proficient with vimscript and vim plugins, but isn't this the place?

augroup rmarkdown
au! BufRead,BufNewFile *.Rmd set filetype=rmarkdown
au! BufRead,BufNewFile *.Rpres set filetype=rmarkdown
augroup END

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants