After an operator (d, c, y), you can name a text object instead of a
motion. It works from anywhere inside the object:
| Object | Inner (i…) |
Around (a…) |
|---|---|---|
w / W |
the word | word + trailing space |
( or b |
inside the parentheses | including the parentheses |
{ or B |
inside braces | including braces |
[ < |
inside brackets / angle brackets | including them |
" ' |
inside the string | including the quotes |
ciw change the word under the cursor
ci( replace a whole argument list
ci" rewrite a string literal
daw delete a word without leaving a double spaceWith the cursor anywhere inside the parentheses,
i( covers just the arguments and a( includes the parentheses: ci( then types the new argument list.Rule of thumb: i for "replace the contents", a for "remove the thing".