6pk AL
6pk AL

Reputation: 11

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 position for typing j,k,l,;. Any suggestions on how to do that? Thanks in advance.

Upvotes: 1

Views: 798

Answers (1)

dmedvinsky
dmedvinsky

Reputation: 8336

: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

Upvotes: 6

Related Questions