开发者

How to change the cursor keys in VIM

开发者 https://www.devze.com 2023-01-06 18:43 出处:网络
I\'m trying to change the cursor keys in VIM from the normal h,j,k,l to the home positi开发者_JS百科on for typing j,k,l,;.Any suggestions on how to do that?Thanks in advance.:help map.txt will give yo

I'm trying to change the cursor keys in VIM from the normal h,j,k,l to the home positi开发者_JS百科on for typing j,k,l,;. Any suggestions on how to do that? Thanks in advance.


:help map.txt will give you a lots of information on the subject.

You can try the following to achieve your goal:

nnoremap j h
nnoremap k j
nnoremap l k
nnoremap ; l

vnoremap j h
vnoremap k j
vnoremap l k
vnoremap ; l
0

精彩评论

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