Mission 29 / 52• Text Objects - Bracket Pairs
Delete Around Brackets
When you want to remove not just the contents, but the enclosing brackets too, use `da{` ('delete around braces').
Delete around brackets
- da{delete around curly braces (including braces)
- da(delete around parentheses (including parens)
Press Enter to start
1const payload = { headers: { token: "secret" } };Position cursor inside `{ token: "secret" }` and type `da{`. Both the inner object and its braces are deleted.
Now it's your turn!
0 / 4 tasks complete0.0s / 16s par0 / 15 par
Practice this lesson's commands. Each task checks your technique and the result, not just your cursor position. Take your time.
Task 1: Remove array literal and brackets with da[.
Expected result
const fallback = ;
Show hint
Use da[.
Press Enter to start
1const fallback = [10, 20];jkscroll•ggGtop/bottom•Tabnext example•Enterstart•qstop•Ctrl+kCtrl+jprev/next