Line 1 is missing its period. With the cursor anywhere on line 1, press A to append at the end of the line, type a period, then Esc.
First rule of vim club: stay in normal mode Second rule: A appends at the end of the line.
Canonical solution: A . Esc · par: 3 keystrokes (vimgolf rules — every keypress counts).
A = jump to end of line + insert mode, in one keystroke. Its siblings: a (append after cursor), I (insert at start of line), o / O (open a line below / above).
| Keys | What it does |
|---|---|
| A | append at end of line |
| $ | move to end of line (stay in normal mode) |
| I | insert at the first non-blank character |
| 0 | move to column 1 |
Reading about keystrokes doesn't build keystrokes. Try this in a real vim buffer right now — the “The missing period” mission takes about a minute.
Practice free — no signup →