The review wasn't that bad. Put the cursor anywhere on “terrible” and press ciw — change inner word — then type wonderful and Esc.
The code review was terrible.
Canonical solution: ciw wonderful Esc · par: 14 keystrokes (vimgolf rules — 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.
Practice free — no signup →