tomtom / tcomment_vim

An extensible & universal comment vim-plugin that also handles embedded filetypes
http://www.vim.org/scripts/script.php?script_id=1173
GNU General Public License v3.0
1.4k stars 103 forks source link

comment visual selection without trailing comma #280

Open dragonxlwang opened 3 years ago

dragonxlwang commented 3 years ago

Hello,

An example that I have

void func(
    T1 t1,
    T2 t2,
    T3 t3);

where that if I want to comment out the t2, because it's not used in the function definition. With visual selection of text t2 without the trailing comma "," and comment with gc, what I saw is

void func(
    T1 t1,
    T2 //t2,
    T3 t3);

But expected behavior is:

void func(
    T1 t1,
    T2 /* t2 */,
    T3 t3);

Is there a good way to achieve the expected result? Thanks!