开发者

gVim windows; how to get h and l to move over newlines

开发者 https://www.devze.com 2023-02-10 05:38 出处:网络
I\'ve searched for this but I can\'t find it anywhere. When I am in command mode moving through text if开发者_StackOverflow社区 I get to the end of a line and press l the cursor doesn\'t move to the b

I've searched for this but I can't find it anywhere. When I am in command mode moving through text if开发者_StackOverflow社区 I get to the end of a line and press l the cursor doesn't move to the beginning of the next line and the editor beeps. Same thing if I am at the beginning of a line and press h I would like it to move to the end of the preceding line.

Is there some simple command in _vimrc I can use to enable this type of movement behavior?


put the following in your _vimrc:

set whichwrap=<,>,[,],h,l
0

精彩评论

暂无评论...
验证码 换一张
取 消