Equivalent to [p
Example
Normal 0 / 1Normal 1 / 1 one
keepCursor on line 1, column 3 red
one
keepCursor on line 2, column 1Equivalent to [p.
Vim registers
*Simulated system clipboard (*)- Linewise · ↵ marks a line break
red↵
SIMULATED PRIMARY selection
- *
red⏎ (linewise)- Indent
Current line has two spaces; shiftwidth=2
Put the line before the clicked first line, match its two-space indent, and leave the cursor at the start of the following line.
Vim registers
*Simulated system clipboard (*)- Linewise · ↵ marks a line break
red↵
SIMULATED PRIMARY selection
- *
red⏎ (linewise)- Indent
Current line has two spaces; shiftwidth=2
Before & after
one
keepCursor on line 1, column 3Vim registers
*Simulated system clipboard (*)- Linewise · ↵ marks a line break
red↵
SIMULATED PRIMARY selection
- *
red⏎ (linewise)- Indent
Current line has two spaces; shiftwidth=2
red
one
keepCursor on line 2, column 1Vim registers
*Simulated system clipboard (*)- Linewise · ↵ marks a line break
red↵
SIMULATED PRIMARY selection
- *
red⏎ (linewise)- Indent
Current line has two spaces; shiftwidth=2
ILLUSTRATION. Assume Vim with mouse=a, shiftwidth=2, available PRIMARY (*) selection support and delivered unmapped mouse events; simulated * holds a linewise red. Click line 1, column 3 (the o) in the active buffer. This [ form puts before the clicked line with indent adjustment and leaves the cursor at the start of the following line; no host clipboard is accessed.
Details & Vim help
Equivalent to [p. 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. The click chooses the target position. When linewise text is put before a clicked buffer line, the mouse put leaves the cursor at the start of the following line.