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
Press Enter to start
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!
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 unnecessary and its adjacent space using daw.
Expected result
// remove words
Show hint
Use daw on unnecessary.
Press Enter to start
1// remove unnecessary wordsjkscroll•ggGtop/bottom•Tabnext example•Enterstart•qstop•Ctrl+kCtrl+jprev/next