System Clipboard Registers

"+ and "* โ€” bridge to the OS clipboard.

Keys: "+, "*

"+ is the system clipboard. "* is the X11 selection (Linux) or another alias for the clipboard. Yank into them, paste from them, or set 'clipboard' to make Vim use them by default.

If you want text from Vim to land in your system clipboard โ€” or vice versa โ€” use "+. "+yy yanks a line into the clipboard. "+p pastes from it.

Yank line to system clipboard
KeyNote
"
+
y
y
Paste from system clipboard
KeyNote
"
+
p
Clipboard registers

Worked example โ€” "+y and "+p

Cross-application copy/paste.

Step 1 ยท
registers.clipboard
Step 2 ยท "+yy ยท "+yy โ€” line into the system clipboard.
"+yy โ€” line into the system clipboard.

"+ writes to the system clipboard. Now Ctrl-V in your browser pastes the line.

โ–ถ Try this in the simulator

See also: Registers, The Unnamed Register