caw.vim icon indicating copy to clipboard operation
caw.vim copied to clipboard

Can't comment/uncomment a hatpos portion of a line

Open tyru opened this issue 8 years ago • 0 comments

ref #26

gc$ (comment)

~Currently hatpos keymappings are linewise. They should work also characterwise-ly.~ ~I think this should be controllable by global variable. Because some users don't like this behavior. (however it should be enabled by default)~

Add a new mapping gc$ and separate with gci.

| is cursor.

int foo |= 1;

to

int foo // = 1;

gcui (uncomment)

This won't be supported. Because it complicates uncomment behavior such as printf("// comment");.

In comment and while normal-mode:

int foo // = 1;

to

int foo = 1;

tyru avatar Mar 20 '16 00:03 tyru