Copy a line to the system clipboard
"+yy
Example
Normal 0 / 2Prefix pending 1 / 2Normal 2 / 2one two
three fourCursor on line 1, column 1one two
three fourCursor on line 1, column 1one two
three fourCursor on line 1, column 1Yank the current line into clipboard register +.
Vim registers
+Simulated system clipboard (+)- Linewise · ↵ marks a line break
previous↵
SIMULATED clipboard
- Provider
Assumed available; no host clipboard is read or written- + register
previous
Choose the simulated CLIPBOARD register.
Vim registers
+Simulated system clipboard (+)- Linewise · ↵ marks a line break
previous↵
SIMULATED clipboard
- Provider
Assumed available; no host clipboard is read or written- + register
previous
Copy this whole line as linewise text.
Vim registers
+Simulated system clipboard (+) Changed- Linewise · ↵ marks a line break
one·two↵
SIMULATED clipboard
- Provider
Assumed available; no host clipboard is read or written- + register
one two
Before & after
one two
three fourCursor on line 1, column 1Vim registers
+Simulated system clipboard (+)- Linewise · ↵ marks a line break
previous↵
SIMULATED clipboard
- Provider
Assumed available; no host clipboard is read or written- + register
previous
one two
three fourCursor on line 1, column 1Vim registers
+Simulated system clipboard (+) Changed- Linewise · ↵ marks a line break
one·two↵
SIMULATED clipboard
- Provider
Assumed available; no host clipboard is read or written- + register
one two
ILLUSTRATION. Assume a working +clipboard provider. The + register shown is simulated; yank the first line.
Details & Vim help
Yank the current line into clipboard register +.
This works only when the Vim build and environment support a system clipboard provider. It is standard Vim syntax, but clipboard availability varies across terminals and remote sessions.