Mission 39 / 52• Text Objects - Words

Delete Around Word

`daw` ('delete around word') deletes the word *and* the adjacent whitespace.

This prevents leaving awkward double spaces when removing an item from a list or sentence.

Delete around word

  • dawdelete the current word and trailing whitespace
1
const list = [first, second, third];
2
// Please do not run this yet

Move to `second` and type `daw`. The word and spacing are cleaned up without manual backspacing.

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 list = [first, second, third];
2
// Please do not run this yet
NORMAL
00:00