Learn Vim / Drop a pin — vim

Drop a pin — vim

The answerCanonical keystrokes: (onto DRAFT) ma G (fix TODO) `a (fix DRAFT).

Try it on a real buffer

Two words to fix, far apart. Move onto DRAFT and set mark a (ma). Jump to the last line (G), change TODO to DONE. Then jump straight back to your pin (`a) and change DRAFT to FINAL.

status: DRAFT
- filler line one
- filler line two
- filler line three
- filler line four
deadline: TODO

Canonical solution: (onto DRAFT) ma G (fix TODO) `a (fix DRAFT) · par: 22 keystrokes (vimgolf rules — every keypress counts).

Why it works

ma drops mark a at the cursor. `a leaps back to that exact spot from anywhere — no scrolling, no searching. Marks are how you hold your place while you go fix something elsewhere.

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

Practice free — no signup →

Keep going