vim-context-commentstring
vim-context-commentstring copied to clipboard
'comments' support?
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?
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.
Merged Joosep's PR. I will see if I can update for HTML as well.