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. The challenge proves it once; Practice is a timed run against the clock.
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
Practice against the clock.
The challenge proves completion once. Practice is a timed run of 15 goals — beat par, then beat your own best time. Every completed goal saves locally.