summaryrefslogtreecommitdiffstats
path: root/runtime/doc/change.txt
diff options
context:
space:
mode:
authorChristian Brabandt <cb@256bit.org>2021-05-30 22:17:25 +0200
committerBram Moolenaar <Bram@vim.org>2021-05-30 22:17:25 +0200
commit2fa9384ca1b600b934bec81a72c5fb7ce757503a (patch)
tree5bb926693906fc0598364604d50d9bb4daaebe09 /runtime/doc/change.txt
parentd2ea7cf10a4d026ebd402594d656af7d5c811c24 (diff)
patch 8.2.2914: cannot paste a block without adding paddingv8.2.2914
Problem: Cannot paste a block without adding padding. Solution: Add "zp" and "zP" which paste without adding padding. (Christian Brabandt, closes #8289)
Diffstat (limited to 'runtime/doc/change.txt')
-rw-r--r--runtime/doc/change.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt
index d0b50ca9a5..6040926f62 100644
--- a/runtime/doc/change.txt
+++ b/runtime/doc/change.txt
@@ -1126,6 +1126,11 @@ inside of strings can change! Also see 'softtabstop' option. >
Using the mouse only works when 'mouse' contains 'n'
or 'a'.
+["x]zp or *zp* *zP*
+["x]zP Like "p" and "P", except without adding trailing spaces
+ when pasting a block. Thus the inserted text will not
+ always be a rectangle.
+
You can use these commands to copy text from one place to another. Do this
by first getting the text into a register with a yank, delete or change
command, then inserting the register contents with a put command. You can
@@ -1165,6 +1170,9 @@ a register, a paste on a visual selected area will paste that single line on
each of the selected lines (thus replacing the blockwise selected region by a
block of the pasted line).
+Use |zP|/|zp| to paste a blockwise yanked register without appending trailing
+spaces.
+
*blockwise-register*
If you use a blockwise Visual mode command to get the text into the register,
the block of text will be inserted before ("P") or after ("p") the cursor