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
1const list = [first, second, third];2// Please do not run this yetMove to `second` and type `daw`. The word and spacing are cleaned up without manual backspacing.
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 list = [first, second, third];2// Please do not run this yetNORMAL
00:00
NextCtrl+jChange Inside Word