Put before the cursor without padding block rows
zP
Example
Normal 0 / 1Normal 1 / 1one
twoCursor on line 1, column 1 red one
blue twoCursor on line 1, column 1Put before the cursor without padding block rows.
Vim registers
"Unnamed register- Blockwise · 6 · Uses Register a
·red·↵ ·blue· aRegister a- Blockwise · 6
·red·↵ ·blue·
Pasted the block before the cursor without padding the rows.
Vim registers
"Unnamed register- Blockwise · 6 · Uses Register a
·red·↵ ·blue· aRegister a- Blockwise · 6
·red·↵ ·blue·
Before & after
one
twoCursor on line 1, column 1Vim registers
"Unnamed register- Blockwise · 6 · Uses Register a
·red·↵ ·blue· aRegister a- Blockwise · 6
·red·↵ ·blue·
red one
blue twoCursor on line 1, column 1Vim registers
"Unnamed register- Blockwise · 6 · Uses Register a
·red·↵ ·blue· aRegister a- Blockwise · 6
·red·↵ ·blue·
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.