Learn Vim / Hunt the word — vim

Hunt the word — vim

The answerCanonical keystrokes: * daw.

Try it on a real buffer

The word “debug” appears twice. With the cursor on the first “debug”, press * to jump to the next one, then delete it with daw.

debug the first thing here
then also debug the second thing

Canonical solution: * daw · par: 4 keystrokes (vimgolf rules — every keypress counts).

Why it works

* searches for the exact word under your cursor — no typing the search. It's the fastest way to chase every use of a variable or function through a file (# searches backwards).

Reading about keystrokes doesn't build keystrokes. Try this in a real vim buffer right now — the “Hunt the word” mission takes about a minute.

Practice free — no signup →

Keep going