You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, gcw should comment only the next word. Also, if less than line is selected in visual mode, gc should comment out only the selection.
For example, consider this code:
voidfunction( unsignedint var, unsignedchar & errorCode );
After selecting only the errorCode word and pressing gc, or after positioning the cursor at the beginning of errorCode word and pressing gcw, the following state is expected:
voidfunction( unsignedint var, unsignedchar & /* errorCode */ );
However, I get the following:
// void function( unsingned int var, unsigned char & errorCode );
Note: I've setup // for line comments in c-like languages that support it with following .vimrc entry:
For example,
gcw
should comment only the next word. Also, if less than line is selected in visual mode,gc
should comment out only the selection.For example, consider this code:
After selecting only the
errorCode
word and pressinggc
, or after positioning the cursor at the beginning oferrorCode
word and pressinggcw
, the following state is expected:However, I get the following:
// void function( unsingned int var, unsigned char & errorCode );
Note: I've setup
//
for line comments in c-like languages that support it with following.vimrc
entry:However, I get the same wrong behaviour even if I set
commentstring
to/*\ %s\ */
(the entire line gets commented instead of just the selection).The text was updated successfully, but these errors were encountered: