| Navigation commands |
| h |
moves cursor to the left |
| j |
moves cursor down one line |
| k |
moves cursor up one line |
| l |
moves cursor to the right |
| w |
moves cursor to next word |
| b |
moves cursor to previous word |
| e |
moves cursor to end of the word |
| [Ctrl]+d (or D) |
scroll down half-screen |
| [Ctrl]+u (or U) |
scroll up half-screen |
| [Ctrl]+F |
scroll down one page |
| [Ctrl]+B |
move back one page |
| 0 |
move cursor to beginning of line |
| $ |
move cursor to end of line |
| [Ctrl]+g |
display where cursor is in the file |
| n[Shift]+g |
moves cursor to line number n |
| fx |
finds next occurrence of x within the current line |
| Fx |
finds previous occurrence of x within the current line |
| / |
finds next occurrence of pattern within the file |
| ?pattern |
finds previous occurrence of pattern within the file |
n |
finds next occurrence of pattern when followed by / or ? |