Skip to content

Commit 883f2d3

Browse files
authored
Merge pull request #1626 from vim-jp/hh-update-change
Update change.{txt,jax}
2 parents 56a9653 + ca1a725 commit 883f2d3

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

doc/change.jax

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim バージョン 9.1. Last change: 2024 Jun 23
1+
*change.txt* For Vim バージョン 9.1. Last change: 2024 Jul 14
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -93,11 +93,13 @@
9393
これらのコマンドはテキストを削除する。これらは (`:d` を除いて) コマンド `.`
9494
繰り返したり、アンドゥできる。テキストのブロックを削除するには、ビジュアルモー
9595
ドを使う。レジスタの説明については、|registers| を参照。
96-
96+
*d-special*
9797
コマンド "d{motion}" に関する例外: 移動が行単位でなく、移動の開始点と終了点が
9898
同じ行になく、移動の開始点の前に空白しかなく終了点の後に空行以外がない場合に
9999
は、削除は行単位となる。このときユーザーは空白のみの行が残ると期待するかもしれ
100-
ないが、共に削除される。削除を文字単位に強制したい場合は |o_v| を使うこと。
100+
ないが、共に削除される。強制的にモーションを文字単位にするために |o_v| オペレー
101+
タを使用するか、この特性を無効にするために 'cpoptions' から "z" フラグを削除す
102+
る (|cpo-z| を参照)。
101103

102104
オプション 'cpoptions' がフラグ 'E' を含んでいるときは、テキストの空の範囲を削
103105
除しようとすると (例えば、1列目での "d0")、エラーになる。
@@ -240,7 +242,7 @@ Vimが "cw" を単語の変更(change-word)として解釈し、また「単語
240242

241243
"cw" の変更範囲に単語の後の空白も含めたいときは、次のマップを使うこと。 >
242244
:map cw dwi
243-
または "caw" を使う(|aw| を参照)。
245+
あるいは "caw" を使用する (|aw| および |cpo-z| も参照)。
244246

245247
*:c* *:ch* *:change*
246248
:{range}c[hange][!] テキストを行単位で別のテキストと置き換える。

en/change.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim version 9.1. Last change: 2024 Jun 23
1+
*change.txt* For Vim version 9.1. Last change: 2024 Jul 14
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -95,13 +95,14 @@ For inserting text see |insert.txt|.
9595
These commands delete text. You can repeat them with the `.` command
9696
(except `:d`) and undo them. Use Visual mode to delete blocks of text. See
9797
|registers| for an explanation of registers.
98-
98+
*d-special*
9999
An exception for the d{motion} command: If the motion is not linewise, the
100100
start and end of the motion are not in the same line, and there are only
101101
blanks before the start and there are no non-blanks after the end of the
102102
motion, the delete becomes linewise. This means that the delete also removes
103103
the line of blanks that you might expect to remain. Use the |o_v| operator to
104-
force the motion to be characterwise.
104+
force the motion to be characterwise or remove the "z" flag from 'cpoptions'
105+
(see |cpo-z|) to disable this peculiarity.
105106

106107
Trying to delete an empty region of text (e.g., "d0" in the first column)
107108
is an error when 'cpoptions' includes the 'E' flag.
@@ -251,7 +252,7 @@ blank; this is probably a bug, because "dw" deletes all the blanks; use the
251252

252253
If you prefer "cw" to include the space after a word, use this mapping: >
253254
:map cw dwi
254-
Or use "caw" (see |aw|).
255+
Alternatively use "caw" (see also |aw| and |cpo-z|).
255256

256257
*:c* *:ch* *:change*
257258
:{range}c[hange][!] Replace lines of text with some different text.

0 commit comments

Comments
 (0)