← Back to overview
Basic Navigation
Character and Line Movement
| Key | Action |
h | Left |
j | Down |
k | Up |
l | Right |
Mnemonic: j looks like a down arrow. h is left of l in the home row.
Word Movement
| Key | Action |
w | Forward to start of next word |
W | Forward to start of next WORD (whitespace-delimited) |
b | Back to start of previous word |
B | Back to start of previous WORD |
e | Forward to end of word |
E | Forward to end of WORD |
Line Navigation
| Key | Action |
0 | Start of line (column 0) |
^ | First non-blank character |
$ | End of line |
g_ | Last non-blank character |
Screen Navigation
| Key | Action |
Ctrl-u | Half-screen up |
Ctrl-d | Half-screen down |
Ctrl-f | Full-screen forward (down) |
Ctrl-b | Full-screen back (up) |
H | Top of screen (High) |
M | Middle of screen |
L | Bottom of screen (Low) |
zz | Center cursor on screen |
zt | Cursor to top of screen |
zb | Cursor to bottom of screen |
File Navigation
| Key | Action |
gg | Go to first line |
G | Go to last line |
:{number} | Go to line number (e.g., :42) |
% | Matching bracket/brace/parenthesis |
Search Navigation
| Key | Action |
/pattern | Search forward |
?pattern | Search backward |
n | Next match |
N | Previous match |
* | Search forward for word under cursor |
# | Search backward for word under cursor |