h | move left |
j | move down |
k | move up |
l | move right |
w | jump by start of words (punctuation considered words) |
W | jump by words (spaces separate words) |
e | jump to end of words (punctuation considered words) |
E | jump to end of words (no punctuation) |
b | jump backward by words (punctuation considered words) |
B | jump backward by words (no punctuation) |
0 | (zero) start of line |
^ | first non-blank character of line |
$ | end of line |
G | Go To command (prefix with number) |
i | start insert mode at cursor |
I | insert at the beginning of the line |
a | append after the cursor |
A | append at the end of the line |
o | open (append) blank line below current line (no need to press return) |
O | open blank line above current line |
esc | exit insert mode |
r | replace a single character (does not use insert mode) |
J | join line below to the current one |
s | delete character at cursor and substitute text |
S | delete line at cursor and substitute text (same as cc) |
u | undo |
. | repeat last command |
p | put (paste) the clipboard after cursor |
P | put (paste) before cursor |
x | delete (cut) current character |