[count] <operator> <motion>
<operator> [count] <motion>
Combination | Description |
---|---|
2d d |
Delete 2 lines |
6y y |
Copy 6 lines |
d 3w |
Delete 3 words |
d 5j |
Delete 5 lines downwards |
> 4k |
Indent 4 lines upwards |
[count] <operator> <motion>
<operator> [count] <motion>
Combination | Description |
---|---|
2d d |
Delete 2 lines |
6y y |
Copy 6 lines |
d 3w |
Delete 3 words |
d 5j |
Delete 5 lines downwards |
> 4k |
Indent 4 lines upwards |
Combination | Description |
---|---|
d d |
Delete current line |
d j |
Delete two lines |
d w |
Delete to next word |
d b |
Delete to beginning of word |
d fa |
Delete until a char |
d /hello |
Delete until hello |
c c |
Change current line, synonym with S |
y y |
Copy current line |
> j |
Indent 2 lines |
ggd G |
Delete a complete document |
gg= G |
Indent a complete document |
ggy G |
Copy a whole document |
Shortcut | Description |
---|---|
d |
Delete |
y |
Yank (copy) |
c |
Change (delete then insert) |
p |
Paste |
= |
Formats code |
g~ |
Toggle case |
gU |
Uppercase |
gu |
Lowercase |
> |
Indent right |
< |
Indent left |
! |
Filter through external program |