Skip to content
Vim
Learn/

Words Review

40 / 51

Text Objects · Words

Words Review

Mix motion-based and object-based word edits.

Use a motion when the edit starts at the cursor and travels; use a text object when the current word itself is the subject.

Use dw, daw, diw, and ciw in the editor beside this lesson. Practice is where you learn it, with the answer a click away; the Test is graded, unaided, and the only thing that marks this lesson complete.

Keys in this lesson

dw
Delete from the cursor to the next word start
daw
Delete the word under the cursor and its trailing space
diw
Delete the word under the cursor, leaving the spaces
ciw
Change the word under the cursor from anywhere inside it
All 91 keys →

Practice to learn it. Test to prove it.

Practice keeps the answer a click away — endlessly in Free, or as a 15-goal run against par and your own best time in Timed. The Test gives you 10 goals with no hints and a keystroke budget on each; passing it is what marks this lesson complete.

dw

Delete the word under the cursor with dw.