File tree Expand file tree Collapse file tree 2 files changed +29
-10
lines changed Expand file tree Collapse file tree 2 files changed +29
-10
lines changed Original file line number Diff line number Diff line change 1
- *change.txt* For Vim バージョン 9.0. Last change: 2022 May 26
1
+ *change.txt* For Vim バージョン 9.0. Last change: 2022 Sep 13
2
2
3
3
4
4
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1153,9 +1153,19 @@ NOTE: 以前のバージョンでは CTRL-V が特別に扱われていた。こ
1153
1153
テキストをヤンクし、置き換えるテキストをビジュアル選択して "0p を使用する。こ
1154
1154
れは何度でも好きなだけ繰り返すことができ、無名レジスタは毎回変更される。
1155
1155
1156
- 矩形ビジュアルモードで一行のみをヤンクしたとき、それをビジュアル選択した範囲に
1157
- 貼り付けると、選択範囲にその一行が貼り付けされる (つまり貼り付けた行のブロック
1158
- によって矩形選択範囲が置換される)。
1156
+ *blockwise-put*
1157
+ レジスタに1行(文字単位)のテキストが含まれている場合、矩形ビジュアル選択を使用
1158
+ してそのレジスタを置くと、選択した各行にそのテキストが繰り返し貼り付けられ、矩
1159
+ 形選択された領域がレジスタテキストの複数のコピーで置き換えられる。例えば:
1160
+ - 単語 "TEXT" を `yw` によってレジスタにコピーする
1161
+ - 矩形ビジュアル選択で、このテキストの "v" を選択する:
1162
+ aaavvaaa
1163
+ bbbvvbbb
1164
+ cccvvccc
1165
+ - `p ` を押す、結果は:
1166
+ aaaTEXTaaa
1167
+ bbbTEXTbbb
1168
+ cccTEXTccc
1159
1169
1160
1170
*blockwise-register*
1161
1171
矩形ビジュアルモードで、レジスタにテキストを蓄えるコマンドを使うと、テキストの
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