Vim Navigation

Moving around in Vim

Basic Movement

h # move left
j # move down
k # move up
l # move right

Word Movement

w # move to start of next word
e # move to end of word
b # move to beginning of previous word
W # move to next WORD (whitespace separated)

Line Movement

0 # move to beginning of line
^ # move to first non-blank character
$ # move to end of line
g_ # move to last non-blank character

File Movement

gg # move to first line
G # move to last line
:10 # go to line 10
10G # go to line 10

Screen Movement

Ctrl + f # page forward
Ctrl + b # page backward
Ctrl + d # half page down
Ctrl + u # half page up
H # move to top of screen
M # move to middle of screen
L # move to bottom of screen

Jump Navigation

Ctrl + o # jump to previous location
Ctrl + i # jump to next location