Vim Recall繁體中文

Put before the cursor without padding block rows

zP

Example

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

Put before the cursor without padding block rows.

Vim registers

" Unnamed register
Blockwise · 6 · Uses Register a·red·↵ ·blue·
a Register a
Blockwise · 6·red·↵ ·blue·
· space ⇥ tab ↵ line break
Before & after
Before
one
two
Cursor on line 1, column 1

Vim registers

" Unnamed register
Blockwise · 6 · Uses Register a·red·↵ ·blue·
a Register a
Blockwise · 6·red·↵ ·blue·
· space ⇥ tab ↵ line break
After
 red one
 blue two
Cursor on line 1, column 1

Vim registers

" Unnamed register
Blockwise · 6 · Uses Register a·red·↵ ·blue·
a Register a
Blockwise · 6·red·↵ ·blue·
· space ⇥ tab ↵ line break

Start in Normal mode. The prepared unnamed block register includes leading and trailing spaces.

Details & Vim help

Example replayed in Vim

zP works like P. When the register contains a block, Vim skips the extra spaces it would add to pad the ends of the pasted rows.