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)
1
const 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!

  1. Navigate to each green target across the code snippet.
  2. Use the motions and techniques learned in this lesson to land accurately on each target.
  3. See how fast you can complete 10 targets.
0/10
1
const payload = { headers: { token: "secret" } };
NORMAL
00:00