Text Objects
Usage
| Shortcut |
Description |
- |
v |
i / a |
p |
| Operator |
inner / around |
Text object |
Operate with an operator inner or around text blocks
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
Delete
| Shortcut |
Description |
diw |
Delete inner word |
dis |
Delete inner sentence |
di" |
Delete in quotes |
da" |
Delete in quotes (including quotes) |
dip |
Delete a paragraph |
Selections
| Shortcut |
Description |
vi" |
Select inner quotes "..." |
va" |
Select quotes "..." |
vi[ |
Select inner brackets [...] |
va[ |
Select brackets [...] |
viw |
Select inner word |
vip |
Select inner paragraph |
vipip |
Select more paragraph |
Misc
| Shortcut |
Description |
ciw |
Change inner word |
ci" |
Change inner quotes |
cit |
Change inner tags (HTML) |
cip |
Change inner paragraph |
yip |
Yank inner paragraph |
yap |
Yank paragraph (including newline) |