Choose the whole pair
The technique
ca( would replace the brackets as well. Start inside the pair you mean.
Keys in this lesson
- ci(
- Change the text inside round brackets.
- ca(
- Change the brackets and what they hold.
- ci[
- Change inside square brackets.
- ci{
- Change inside curly brackets.
- ci'
- Change inside single quotes.
Before this lesson: Words and quotations.
More about this lesson
Replace contents or delimiters deliberately; start inside the intended region.
i keeps the surrounding pair; a includes it. ci( changes arguments while ca( replaces the parentheses too. Bracket objects can span lines and select an inner nested pair. Start inside the intended region: this browser and native Vim can differ when you start before a call. Single-quoted objects stay within the intended quotation.
Example
From inside (draft), ci( then ready then Esc gives (ready); ca( then ready gives ready. Those are different desired results.
Use Reset to try again.