| Command | Description |
|---|---|
| h | Move left |
| j | Move down |
| k | Move up |
| l | Move right |
| gj | Move down (multi-line text) |
| gk | Move up (multi-line text) |
| Command | Description |
|---|---|
| w | Move to the beginning of the next word |
| b | Move to the beginning of the previous word |
| e | Move to the end of the current word |
| ge | Move to the end of the previous word |
| W | Move to the beginning of the next WORD (space-separated) |
| B | Move to the beginning of the previous WORD |
| E | Move to the end of the current WORD |
| Command | Description |
|---|---|
| 0 | Move to the beginning of the line |
| ^ | Move to the first non-blank character of the line |
| $ | Move to the end of the line |
| g_ | Move to the last non-blank character of the line |
| Command | Description |
|---|---|
| gg | Move to the first line of the document |
| G | Move to the last line of the document |
| {num}G | Move to line {num} |
| H | Move to the top of the screen |
| M | Move to the middle of the screen |
| L | Move to the bottom of the screen |
| Command | Description |
|---|---|
| Ctrl+f | Scroll forward one full screen |
| Ctrl+b | Scroll backward one full screen |
| Ctrl+d | Scroll forward 1/2 screen |
| Ctrl+u | Scroll backward 1/2 screen |
| zz | Center cursor on screen |
| Command | Description |
|---|---|
| % | Move to matching parenthesis/bracket |
| f{char} | Move to next occurrence of {char} on the current line |
| F{char} | Move to previous occurrence of {char} on the current line |
| t{char} | Move to before next occurrence of {char} |
| T{char} | Move to after previous occurrence of {char} |
| ; | Repeat last f, F, t, or T movement |
| , | Repeat last f, F, t, or T movement, backwards |