File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 1
- *change.txt* For Vim version 9.0. Last change: 2022 May 26
1
+ *change.txt* For Vim version 9.0. Last change: 2022 Sep 13
2
2
3
3
4
4
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
1188
1188
the text to copy, Visually select the text to replace and use "0p . You can
1189
1189
repeat this as many times as you like, and the unnamed register will be
1190
1190
changed each time.
1191
-
1192
- When you use a blockwise Visual mode command and yank only a single line into
1193
- a register, a paste on a visual selected area will paste that single line on
1194
- each of the selected lines (thus replacing the blockwise selected region by a
1195
- block of the pasted line).
1191
+ *blockwise-put*
1192
+ When a register contains text from one line (characterwise), using a
1193
+ blockwise Visual selection, putting that register will paste that text
1194
+ repeatedly in each of the selected lines, thus replacing the blockwise
1195
+ selected region by multiple copies of the register text. For example:
1196
+ - yank the word "TEXT" into a register with `yw`
1197
+ - select a visual block, marked with "v" in this text:
1198
+ aaavvaaa
1199
+ bbbvvbbb
1200
+ cccvvccc
1201
+ - press `p ` , results in:
1202
+ aaaTEXTaaa
1203
+ bbbTEXTbbb
1204
+ cccTEXTccc
1196
1205
1197
1206
*blockwise-register*
1198
1207
If you use a blockwise Visual mode command to get the text into the register,
You can’t perform that action at this time.
0 commit comments