Closed dhduvall closed 2 months ago
I'm not really sure if it's appropriate to set this, just for the sake of vim-commentary. Especially since the global vim default of /*%s*/
is valid in C#.
Fair enough. I didn't look for other users; I just hypothesized their existence. I'll defer to you on this. (I should definitely track down what plugin set it globally, though—that seems like a bug.)
You can find out where an option was set using :verbose
, e.g.:
:verb set commentstring?
Vim documents
commentstring
aswhich might explain why many filetype plugins don't set it; but I discovered that vim-commentary uses it, so I think it's helpful to have set usefully. I was surprised to find it prepending
#
to the commented-out lines, but that was probably because of some other plugin setting it globally instead of locally.Easy workaround: