summaryrefslogtreecommitdiffstats
path: root/runtime/doc/change.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-09-18 13:04:22 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-18 13:04:22 +0100
commit9712ff1288f942736ed76c0dec014909f067eec9 (patch)
treed3db95b26eb5606d89a711571055ceceee7c52e3 /runtime/doc/change.txt
parent65ee49decf5677690cd695d5d288e39344965fff (diff)
Update runtime files
Diffstat (limited to 'runtime/doc/change.txt')
-rw-r--r--runtime/doc/change.txt21
1 files changed, 15 insertions, 6 deletions
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt
index 5ac2f63f7a..a51dadb7dd 100644
--- a/runtime/doc/change.txt
+++ b/runtime/doc/change.txt
@@ -1,4 +1,4 @@
-*change.txt* For Vim version 9.0. Last change: 2022 May 26
+*change.txt* For Vim version 9.0. Last change: 2022 Sep 13
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1188,11 +1188,20 @@ used. If you do need it you can use |p| with another register. E.g., yank
the text to copy, Visually select the text to replace and use "0p . You can
repeat this as many times as you like, and the unnamed register will be
changed each time.
-
-When you use a blockwise Visual mode command and yank only a single line into
-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).
+ *blockwise-put*
+When a register contains text from one line (characterwise), using a
+blockwise Visual selection, putting that register will paste that text
+repeatedly in each of the selected lines, thus replacing the blockwise
+selected region by multiple copies of the register text. For example:
+ - yank the word "TEXT" into a register with `yw`
+ - select a visual block, marked with "v" in this text:
+ aaavvaaa
+ bbbvvbbb
+ cccvvccc
+ - press `p`, results in:
+ aaaTEXTaaa
+ bbbTEXTbbb
+ cccTEXTccc
*blockwise-register*
If you use a blockwise Visual mode command to get the text into the register,