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)
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!
- Navigate to each green target across the code snippet.
- Use the motions and techniques learned in this lesson to land accurately on each target.
- See how fast you can complete 10 targets.
0/10
1const payload = { headers: { token: "secret" } };NORMAL
00:00
NextCtrl+jChange Inside Brackets