The review wasn't that bad. You're on the word — press ciw (change inner word), type wonderful, then Esc.
The code review was terrible.
Canonical solution: ciw wonderful Esc · target: 13 keystrokes — the fewest that solve it (every keypress counts).
c is the change operator: delete + enter insert mode. ciw works from anywhere inside the word — no need to be at its start. Compare with cw, which changes from the cursor onward.
| Keys | What it does |
|---|---|
| ciw | change inner word (from anywhere in it) |
| cw | change from the cursor to the end of the word |
| caw | change the word plus its space |
| C | change to the end of the line |
Reading about keystrokes doesn't build keystrokes. Try this in a real vim buffer right now — the “Attitude adjustment” mission takes about a minute.
Sign in free to practice →