Movement Commands
A number preceding a command repeats the movement. Movement commands are also objects for change, delete, and yank operations.
Character
Command | Action |
---|---|
h, j, k, l
| Left, down, up, right (←, ↓, ↑, →) |
Spacebar
| Right |
Backspace
| Left |
Ctrl-H
| Left |
Text
Command | Action |
---|---|
w , b
|
Forward, backward by word (treating punctuation marks as words). |
W , B
|
Forward, backward by word (recognizing only whitespace, not punctuation, as separators). |
e
|
End of word (treating a punctuation mark as the end of a word). |
E
|
End of word (recognizing only whitespace as the end of a word). |
) , (
| Beginning of next, current sentence. |
} , {
| Beginning of next, current paragraph. |
]] , [[
| Beginning of next, current section. |
Ctrl-D | Move to previous tab setting. |
Ctrl-T | Move to next tab setting. |
Ctrl-W | Move back one word. |
Lines
Command | Action |
---|---|
0 , $
| First, last position of current line. |
^ , _
| First nonblank character of current line. |
+ , -
| First character of next, previous line. |
Return | First nonblank character of next line. |
n
|
| Column n of current line. |
H
| Top line of screen. |
M
| Middle line of screen. |
L
| Last line of screen. |
n
H
|
n lines after top line. |
n
L
|
n lines before last line. |
Ctrl-J | Move down one line. |
Ctrl-M | Move to first nonblank character of next line. |
Screens
Command | Action |
---|---|
Ctrl-F, Ctrl-B | Scroll forward, backward one screen. |
Ctrl-D, Ctrl-U | Scroll down, up one-half screen. |
Ctrl-E, Ctrl-Y |
Show one more line at bottom, top of window. |
|
Reposition line with cursor to top of screen. |
z.
|
Reposition line ... |
Get Linux in a Nutshell, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.