“quick” appears twice in a row. Put the cursor at the start of the second “quick” and delete the whole word with dw.
The quick quick brown fox jumps over the lazy dog.
Canonical solution: w w (onto the 2nd quick), then dw · par: 3 keystrokes (vimgolf rules — every keypress counts).
w hops forward a word at a time, b hops back. dw deletes from the cursor to the start of the next word — operator (d) + motion (w). This grammar is the heart of vim.
| Keys | What it does |
|---|---|
| daw | delete a word plus its surrounding space — works from anywhere in the word |
| diw | delete the word only, keep the space |
| dw | delete from the cursor to the start of the next word |
| d3w | delete three words |
| db | delete to the beginning of the word |
Reading about keystrokes doesn't build keystrokes. Try this in a real vim buffer right now — the “Double vision” mission takes about a minute.
Practice free — no signup →