Equivalent to gP at the mouse click position
<MiddleMouse>
Example
Normal 0 / 1Normal 1 / 1one two
three fourCursor on line 1, column 1one REDtwo
three fourCursor on line 1, column 8Equivalent to gP at the mouse click position.
Vim registers
*Simulated system clipboard (*)- Characterwise
RED
SIMULATED PRIMARY selection
- *
RED (characterwise)- Mouse
line 1, column 5
Put RED before t at the click; gP leaves the cursor just after the inserted text.
Vim registers
*Simulated system clipboard (*)- Characterwise
RED
SIMULATED PRIMARY selection
- *
RED (characterwise)- Mouse
line 1, column 5
Before & after
one two
three fourCursor on line 1, column 1Vim registers
*Simulated system clipboard (*)- Characterwise
RED
SIMULATED PRIMARY selection
- *
RED (characterwise)- Mouse
line 1, column 5
one REDtwo
three fourCursor on line 1, column 8Vim registers
*Simulated system clipboard (*)- Characterwise
RED
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.