navigation

h j k l

The four fundamental cursor keys in Vim: h moves left, j down, k up, l right. Reach for them any time you would instinctively hit an arrow key — keeping your hands on the home row is the whole point.

h j k l  (normal / visual mode)

Variations

Keystroke Effect
10j Jump 10 lines down (count prefix works on all motions)
5l Move 5 characters right
d3j Combined with operator: delete current line plus 3 below

Examples

j

Move cursor down one line

20k

Jump 20 lines up

y5l

Yank 5 characters to the right

Gotcha

These only work in normal or visual mode. In insert mode they type literal letters — press Escape first.

Related

← All Vim commands · Vim cheat sheet