← Back to overview

Basic Navigation

Character and Line Movement

KeyAction
hLeft
jDown
kUp
lRight

Mnemonic: j looks like a down arrow. h is left of l in the home row.

Word Movement

KeyAction
wForward to start of next word
WForward to start of next WORD (whitespace-delimited)
bBack to start of previous word
BBack to start of previous WORD
eForward to end of word
EForward to end of WORD

Line Navigation

KeyAction
0Start of line (column 0)
^First non-blank character
$End of line
g_Last non-blank character

Screen Navigation

KeyAction
Ctrl-uHalf-screen up
Ctrl-dHalf-screen down
Ctrl-fFull-screen forward (down)
Ctrl-bFull-screen back (up)
HTop of screen (High)
MMiddle of screen
LBottom of screen (Low)
zzCenter cursor on screen
ztCursor to top of screen
zbCursor to bottom of screen

File Navigation

KeyAction
ggGo to first line
GGo to last line
:{number}Go to line number (e.g., :42)
%Matching bracket/brace/parenthesis

Search Navigation

KeyAction
/patternSearch forward
?patternSearch backward
nNext match
NPrevious match
*Search forward for word under cursor
#Search backward for word under cursor