Rules for Vim navigation are simple:
- You cannot use your mouse cursor
Hto move left
Jto move down
Kto move up
Lto move right
If you just started to work with Vim navigation it may be hard to remember which key is responsible for given direction. I explained the order to myself using following rules:
H- is the most on the left so it moves cursor left
L- is the most on the right so it moves cursor right, it also is turned into right
J- like jump
K- like kick the ball higher
If you have better ways to remember the order, share them in a comment!
Want to receive useful tips, information about new Ruby gems and articles on a daily basis? Make sure you follow me and say hello!