Skip to content
Vim
Learn/

Change Around Brackets

30 / 51

Text Objects · Brackets

Change Around Brackets

Replace an entire bracketed expression.

ca includes the delimiters in the changed range. Use it when the replacement has a different shape or no grouping at all.

Use ca(, ca[, and ca{ in the editor beside this lesson. Practice is where you learn it, with the answer a click away; the Test is graded, unaided, and the only thing that marks this lesson complete.

Keys in this lesson

ca(
Change the parentheses and everything inside them
ca[
Change the square brackets and everything inside them
ca{
Change the braces and everything inside them
All 91 keys →

Practice to learn it. Test to prove it.

Practice keeps the answer a click away — endlessly in Free, or as a 15-goal run against par and your own best time in Timed. The Test gives you 8 goals with no hints and a keystroke budget on each; passing it is what marks this lesson complete.

ca(stableEsc

Replace the complete parenthesized value with “stable”.