Learn Vim / How to Jump to the End of a Line and Type in Vim

How to Jump to the End of a Line and Type in Vim

The answerPress A — it moves to the end of the line and enters insert mode in one keystroke.

Try it on a real buffer

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).

Why it works

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).

Variations

KeysWhat it does
Aappend at end of line
$move to end of line (stay in normal mode)
Iinsert at the first non-blank character
0move 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 →

Keep going