diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-18 13:04:22 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-18 13:04:22 +0100 |
commit | 9712ff1288f942736ed76c0dec014909f067eec9 (patch) | |
tree | d3db95b26eb5606d89a711571055ceceee7c52e3 /runtime/doc/change.txt | |
parent | 65ee49decf5677690cd695d5d288e39344965fff (diff) |
Update runtime files
Diffstat (limited to 'runtime/doc/change.txt')
-rw-r--r-- | runtime/doc/change.txt | 21 |
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, |