+ register: "+yy copies the line to the system clipboard. Paste from it with "+p.Vim's registers are separate from the OS clipboard by design. The + register is the bridge. If you always want them linked, add set clipboard=unnamedplus to your vimrc (requires clipboard support — check with vim --version | grep clipboard).
| Keys | What it does |
|---|---|
| "+yy | copy the line to the system clipboard |
| "+p | paste from the system clipboard |
| ggVG"+y | copy the whole file to the system clipboard |
| set clipboard=unnamedplus | vimrc: use the system clipboard for everything |
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 →