Cursor control and position |
| h or ← | Left |
| j, ↓ or RETURN | Down |
| k or ↑ | Up |
| l, → or SPACE | Right |
| w | Forward one word |
| b | Back one word |
| e | End of word |
| ( | Beginning of current sentence |
| ) | Beginning of next sentence |
| { | Beginning of current paragraph |
| } | Beginning of next paragraph |
| [[ | Beginning of current section |
| ]] | Beginning of next section |
| 0 | Start of the current line |
| $ | End of the current line |
| ^ | First non-white character on current line |
| + or RETURN | First character on next line |
| - | First character on previous line |
| n| | Character n of current line |
| H | Top line of current screen |
| M | Middle line of current screen |
| L | last line of current screen |
| nH | n lines after the top line of current screen |
| nL | n lines before last line of current screen |
| CTRL+F | Forward one screen |
| CTRL+B | Back one screen |
| CTRL+D | Down half a screen |
| CTRL+U | Up half a screen |
| CTRL+E | Display another line at bottom of screen |
| CTRL+Y | Display another line at top of screen |
| z RETURN | Redraw screen with cursor at top |
| z . | Redraw screen with cursor in middle |
| z - | Redraw screen with cursor at bottom |
| CTRL+L | Redraw screen without re-positioning |
| CTRL+R | Redraw screen without re-positioning |
| /test | Search for text (forward) |
| / | Repeat forward search |
| ?text | Search for text (backward) |
| ? | Repeat previous search backward |
| n | Repeat previous search |
| N | Repeat previous search, but in the opposite direction |
| /text/+n | Go to line n after text |
| ?text?-n | Go to line n before text |
| % | Find match of current parenthesis, brace, or bracket |
| CTRL+G | Display line number of cursor |
| nG | Move cursor to line number n |
| :n | Move cursor to line number n |
| G | Move to last line |