Shortcut | Description |
---|---|
c iw |
Change inner word |
c i" |
Change inner quotes |
c it |
Change inner tags (HTML) |
c ip |
Change inner paragraph |
y ip |
Yank inner paragraph |
y ap |
Yank paragraph (including newline) |
Vim Text objects
Misc
Selections
Shortcut | Description |
---|---|
v i" |
Select inner quotes "... " |
v a" |
Select quotes "..." |
v i[ |
Select inner brackets [... ] |
v a[ |
Select brackets [...] |
v iw |
Select inner word |
v ip |
Select inner paragraph |
v ipip |
Select more paragraph |
Delete
Shortcut | Description |
---|---|
d iw |
Delete inner word |
d is |
Delete inner sentence |
d i" |
Delete in quotes |
d a" |
Delete in quotes (including quotes) |
d ip |
Delete a paragraph |
Text objects
Shortcut | Description |
---|---|
p | Paragraph |
w | Word |
W | WORD (surrounded by whitespace) |
s | Sentence |
[ ( { < | A [], (), or {} block |
] ) } > | A [], (), or {} block |
' " ` | A quoted string |
b | A block [( |
B | A block in [{ |
t | A HTML tag block |
See :help text-objects |
Comments