vim-context-commentstring icon indicating copy to clipboard operation
vim-context-commentstring copied to clipboard

'comments' support?

Open BenoitZugmeyer opened this issue 5 years ago • 2 comments

I'm wondering if this plugin could also support the VIM 'comments' option?

My usecase is: I work with HTML files containing script and style tags. vim-context-commentstring allows me to use easily comment stuff with vim-commentary. I'd love to be able to use the VIM 'formatoptions' to format comments with gq and J etc, but it doesn't work because the 'comments' option stays to HTML comments for the whole file.

Since the option to be configured follows the same logic as 'commentstring', and in my opinion it could support both options. Or maybe there is already a plugin supporting the 'comments' option? Thoughts?

BenoitZugmeyer avatar Apr 04 '19 10:04 BenoitZugmeyer

Hey! Just to let you know that I added a PR which does exactly this (although I only added the options for Vue files): #7.

JoosepAlviste avatar Sep 15 '20 10:09 JoosepAlviste

Merged Joosep's PR. I will see if I can update for HTML as well.

suy avatar Jun 15 '21 12:06 suy