tomtom / tcomment_vim

An extensible & universal comment vim-plugin that also handles embedded filetypes

Home Page:http://www.vim.org/scripts/script.php?script_id=1173

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

comment visual selection without trailing comma

dragonxlwang opened this issue · comments

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!