Vim Recall繁體中文

Paste the system clipboard

"+p

Example

Normal 0 / 2
one two
three four
Cursor on line 1, column 1

Put the contents of clipboard register +.

Vim registers

+ Simulated system clipboard (+)
Linewise · ↵ marks a line breakred↵
· space ⇥ tab ↵ line break

SIMULATED clipboard

Provider
Assumed available; no host clipboard is read or written
+ register
red
Before & after
Before
one two
three four
Cursor on line 1, column 1

Vim registers

+ Simulated system clipboard (+)
Linewise · ↵ marks a line breakred↵
· space ⇥ tab ↵ line break

SIMULATED clipboard

Provider
Assumed available; no host clipboard is read or written
+ register
red
After
one two
red
three four
Cursor on line 2, column 1

Vim registers

+ Simulated system clipboard (+)
Linewise · ↵ marks a line breakred↵
· space ⇥ tab ↵ line break

SIMULATED clipboard

Provider
Assumed available; no host clipboard is read or written
+ register
red

ILLUSTRATION. Assume a working clipboard provider and a simulated linewise + register containing red plus a newline.

Details & Vim help

Put the contents of clipboard register +.

The + register needs clipboard support in the Vim build and environment. As with other puts, placement follows the register’s characterwise, linewise, or blockwise type.