Skip to content
Vim Learn
Learn/

Delete Words

13 / 51

Basic Operators

Delete Words

Combine d with word and WORD motions.

Deletion stores removed text in the unnamed register, so it can be pasted later. Choose lowercase or uppercase motion based on punctuation boundaries.

Use dw, dW, and de in the editor beside this lesson. The challenge proves it once; Practice is a timed run against the clock.

Keys in this lesson

dw
Delete from the cursor to the next word start
dW
Delete to the next WORD, punctuation included
de
Delete to the end of the current word
All 91 keys →

Practice against the clock.

The challenge proves completion once. Practice is a timed run of 15 goals — beat par, then beat your own best time. Every completed goal saves locally.

dW

Delete one whitespace-delimited WORD with dW.