diff --git a/doc/change.jax b/doc/change.jax index 1185b4000..81b483b16 100644 --- a/doc/change.jax +++ b/doc/change.jax @@ -1,4 +1,4 @@ -*change.txt* For Vim バージョン 9.1. Last change: 2025 Apr 03 +*change.txt* For Vim バージョン 9.1. Last change: 2025 May 28 VIMリファレンスマニュアル by Bram Moolenaar @@ -643,8 +643,8 @@ MS-Windows ではシステム関数 GetTempFileName() が使われる。 最後の置換を同じパターンかつ同じ置換文字列で、フラグを つけずに繰り返す。フラグを追加することもできる (|:s_flags|を参照)。 - Note `:substitute` の後ではフラグ '&' は使えないことに - 注意。パターンの区切り文字だと認識されてしまう。 + Note `:substitute` の後では '&' および '#' フラグは使 + 用できず、パターン区切りとして認識されることに注意。 `:substitute` とフラグ 'c', 'g', 'i', 'I', 'r' の間の 空白は必要不可欠ではない。しかしスクリプト内では、混乱 しないように空白を入れておくのはよい考えである。 diff --git a/en/change.txt b/en/change.txt index 24137c74d..6bf9e2c69 100644 --- a/en/change.txt +++ b/en/change.txt @@ -1,4 +1,4 @@ -*change.txt* For Vim version 9.1. Last change: 2025 Apr 03 +*change.txt* For Vim version 9.1. Last change: 2025 May 28 VIM REFERENCE MANUAL by Bram Moolenaar @@ -664,8 +664,9 @@ For other systems the tmpnam() library function is used. Repeat last :substitute with same search pattern and substitute string, but without the same flags. You may add [flags], see |:s_flags|. - Note that after `:substitute` the '&' flag can't be - used, it's recognized as a pattern separator. + Note that after `:substitute` the '&' and '#' flags + can't be used, they're recognized as a pattern + separator. The space between `:substitute` and the 'c', 'g', 'i', 'I' and 'r' flags isn't required, but in scripts it's a good idea to keep it to avoid confusion.