我gvim,当我使用光标移动键返回一个字符时,它不会回绕到前一行,而是卡在当前行的开头。 是否有任何旗帜可以控制它?
答案 0 :(得分:0)
是的,有。有关详细信息,请参阅:help 'whichwrap'
:
'whichwrap' 'ww' string (Vim default: "b,s", Vi default: "")
global
{not in Vi}
Allow specified keys that move the cursor left/right to move to the
previous/next line when the cursor is on the first/last character in
the line. Concatenate characters to allow this for these keys:
char key mode ~
b <BS> Normal and Visual
s <Space> Normal and Visual
h "h" Normal and Visual (not recommended)
l "l" Normal and Visual (not recommended)
< <Left> Normal and Visual
> <Right> Normal and Visual
~ "~" Normal
[ <Left> Insert and Replace
] <Right> Insert and Replace
For example: >
:set ww=<,>,[,]