Three “bug” words infest this file. Search with /bug, delete the first with daw, then press n to jump to the next match and . (dot) to repeat the delete. Clear all three.
The demo worked bug perfectly on my machine. The tests bug passed on the first try. Nothing bug suspicious happened at all.
Canonical solution: /bug Enter, daw, n, ., n, . · par: 12 keystrokes (vimgolf rules — every keypress counts).
n repeats the last search forward (N goes backward). The dot command . replays your last change. Search + n + . is one of the fastest editing loops in vim.
| Keys | What it does |
|---|---|
| . | repeat the last change |
| n | jump to the next search match |
| ; / , | repeat the last f/t jump forward / backward |
| @@ | repeat the last macro |
Reading about keystrokes doesn't build keystrokes. Try this in a real vim buffer right now — the “Exterminator” mission takes about a minute.
Practice free — no signup →