Improvements to block-wise visual paste#8289
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8289 +/- ##
==========================================
- Coverage 89.58% 89.46% -0.13%
==========================================
Files 148 148
Lines 167042 164293 -2749
==========================================
- Hits 149650 146982 -2668
+ Misses 17392 17311 -81
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
|
Okay |
|
not sure, I'll check |
Problem: Cannot paste a block without adding padding.
Solution: Add "zp" and "zP" which paste without adding padding. (Christian
Brabandt, closes vim/vim#8289)
vim/vim@2fa9384
Cherry-pick Test_normal_z_error() from patch v8.2.0369.
If this would be considered as expected then I guess a mention about |
Problem: Cannot paste a block without adding padding.
Solution: Add "zp" and "zP" which paste without adding padding. (Christian
Brabandt, closes vim/vim#8289)
vim/vim@2fa9384
Cherry-pick Test_normal_z_error() from patch v8.2.0369.
|
I think those spaces come from the yank command already. That's what the |
Problem: Cannot paste a block without adding padding.
Solution: Add "zp" and "zP" which paste without adding padding. (Christian
Brabandt, closes vim/vim#8289)
vim/vim@2fa9384
Cherry-pick Test_normal_z_error() from patch v8.2.0369.

Blockwise visual paste always pastes a whole complete uniform block. For lines that are shorter, trailing spaces are appended, so that always a uniform x rows by y characters selection will be pasted. However, sometimes it might be desirable to just paste the block without adding trailing spaces.
See e.g. https://vi.stackexchange.com/q/31378/71
So let's allow this using the new
zcommandszpandzP.