Delete to the next word
dw
Example
Normal 0 / 2Operator pending 1 / 2Normal 2 / 2one twoCursor on line 1, column 1one twoCursor on line 1, column 1twoCursor on line 1, column 1Delete from the cursor to the next word start.
Vim registers
"Unnamed register- Characterwise · Uses Yank register 0
saved -Small delete register- Characterwise
Empty
Waiting for motion or text object
Vim registers
"Unnamed register- Characterwise · Uses Yank register 0
saved -Small delete register- Characterwise
Empty
Delete from the cursor to the next word start
Vim registers
"Unnamed register Changed- Characterwise · Uses Small delete register
one· -Small delete register Changed- Characterwise
one·
Before & after
one twoCursor on line 1, column 1Vim registers
"Unnamed register- Characterwise · Uses Yank register 0
saved -Small delete register- Characterwise
Empty
twoCursor on line 1, column 1Vim registers
"Unnamed register Changed- Characterwise · Uses Small delete register
one· -Small delete register Changed- Characterwise
one·
Start in Normal mode. Cursor starts on o. Press dw.
Details & Vim help
Example replayed in Vim
Delete from the cursor to the next word start.
Combine the delete operator with the w motion. Starting at the first letter usually removes the word and its following spaces; line-boundary rules can change the range. A count such as 3dw extends the motion.