vim-polyglot
vim-polyglot copied to clipboard
wrong comments for .rmd
Hey,
noticed that you use a wrong commentstring for .rmd-format.
I would advice to change from:
setlocal commentstring=#\ %s
to:
setlocal commentstring=<!--%s-->
Or even better:
When you are in a environment like this
’’’{r}
# this is a comment
’’’
but when you do plaintext:
< !-- this is a comment -- >
(notice that I had to change the notation a little bit to not confuse the syntax)
I would do it myself but I have no clue how to obtain this feature :/
Would be grate if someone make their hands dirty on this
Best regards A