How keys are counted

Your score is the number of keys you pressed to finish the edit. Here's exactly what counts.

What doesn't count

Clicks don't count. When you start an edit over, the count goes back to zero, so only the attempt you finish is counted.

Par

Par is a clean route using what you've learned so far. It's the route someone fluent in Vim would type, never a trick. Every route is played in the same editor before the site goes live, so par is always possible.

Matching par is a full success. If you find a shorter way, that's a bonus. You still get gold, and the result says how many keys under par you were. You don't have to find one.

Puzzles are different. Their par is the fewest keys, and tricks are welcome.

Medals

In practice, you get gold at par or better, silver within two keys of par, and bronze for finishing.

If you want more detail, read How the analyser finds a shorter route.