vim-polyglot icon indicating copy to clipboard operation
vim-polyglot copied to clipboard

wrong comments for .rmd

Open alexchaichan opened this issue 2 years ago • 0 comments

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

alexchaichan avatar Apr 04 '22 15:04 alexchaichan