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
精彩评论