In vim you rarely need select-all: operators take motions directly (ggyG copies the whole file with no selection step). But when you want to see it, ggVG is the move.
| Keys | What it does |
|---|---|
| ggVG | select the whole file |
| ggyG | copy the whole file — no selection needed |
| :%y | copy all lines via ex command |
| ggVG"+y | select all + copy to system clipboard |
Reading about keystrokes doesn't build keystrokes. Try this in a real vim buffer right now — the “Take everything” mission takes about a minute.
Practice free — no signup →