Vim Recall繁體中文

Equivalent to gP at the mouse click position

<MiddleMouse>

Example

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

Equivalent to gP at the mouse click position.

Vim registers

* Simulated system clipboard (*)
CharacterwiseRED
· space ⇥ tab ↵ line break

SIMULATED PRIMARY selection

*
RED (characterwise)
Mouse
line 1, column 5
Before & after
Before
one two
three four
Cursor on line 1, column 1

Vim registers

* Simulated system clipboard (*)
CharacterwiseRED
· space ⇥ tab ↵ line break

SIMULATED PRIMARY selection

*
RED (characterwise)
Mouse
line 1, column 5
After
one REDtwo
three four
Cursor on line 1, column 8

Vim registers

* Simulated system clipboard (*)
CharacterwiseRED
· space ⇥ tab ↵ line break

SIMULATED PRIMARY selection

*
RED (characterwise)
Mouse
line 1, column 5

ILLUSTRATION. mouse=a, mousemodel=extend, selectmode empty, scrolloff=0; terminal/GUI mouse events reach Vim. Coordinates are one-based buffer line and column. Assume clipboard support and PRIMARY text RED. No actual clipboard is read.

Details & Vim help

Equivalent to gP at the mouse click position. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative. Mouse support and terminal/GUI event handling must be available.