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

Support multiple commentstrings

Open rosetree opened this issue 10 years ago • 4 comments

It would be great when commentary could recognize multiple ways of how a comments can be done in a language. This should only work to comment lines out; commenting should use a single commentstring.

As an example see the following comment in C before calling commentary:

// no comment

After using gcc on that line:

no comment

After using gcc a second time:

/* no comment */

At the moment, using gcc on the first comment ends in:

/* // no comment */

rosetree avatar Apr 07 '15 15:04 rosetree

+1

justb3a avatar Oct 10 '16 10:10 justb3a

There's comments, which has a list of comment styles.

somini avatar Oct 12 '16 18:10 somini

@somini did you mean to link to another plugin?

noscript avatar Jul 25 '18 12:07 noscript

No, comments is a Vim setting. This is for the configuration per filetype, not the implementation.

somini avatar Jul 27 '18 12:07 somini