开发者

How to change the cursor keys in VIM

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜