Skip to content
Vim
Learn/

Brackets Review

31 / 51

Text Objects · Brackets

Brackets Review

Mix delete/change with inner/around bracket objects.

Read the desired boundary first, then choose operator and object. Nested pairs are resolved from the cursor outward.

Use di(, da(, ci{, 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

di(
Delete inside the parentheses, keeping the pair
da(
Delete the parentheses and everything inside them
ci{
Change inside the braces, keeping the pair
ca[
Change the square brackets 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 10 goals with no hints and a keystroke budget on each; passing it is what marks this lesson complete.

di(

Delete only the contents of the parentheses with di(.