diff --git a/doc/editing.jax b/doc/editing.jax index 70156f4ec..8ddc4d924 100644 --- a/doc/editing.jax +++ b/doc/editing.jax @@ -1,4 +1,4 @@ -*editing.txt* For Vim バージョン 9.1. Last change: 2024 Oct 14 +*editing.txt* For Vim バージョン 9.1. Last change: 2025 Apr 03 VIMリファレンスマニュアル by Bram Moolenaar @@ -968,8 +968,9 @@ Note: オプション 'write' がオフのときは、どのファイルも書 前の空白に注意)。{cmd} は ":!{cmd}" のように実行され、 全ての '!' は前回のコマンドに置き換えられる |:!|。 -コマンド ":w" での [range] の既定値はバッファ全体 (1,$) である。バッファ全体を -書き込むと、そのバッファは変更されていないとみなされるようになる。 +コマンド ":w" での [range] の既定値はバッファ全体 (1,$) である。|'[| および +|']| マークは、書き込みコマンドに使用される [range] に設定される。バッファ全体 +を書き込むと、そのバッファは変更されていないとみなされるようになる。 ":w somefile" によって別のファイルに書き出した場合は、'cpoptions' の "+" フラ グに依存する。"+" が含まれている場合は、バッファがまだ元のファイルと異なってい たとしても、書き込みコマンドによって 'modified' フラグがオフになる。 diff --git a/en/editing.txt b/en/editing.txt index a70515d6f..a88aad1a7 100644 --- a/en/editing.txt +++ b/en/editing.txt @@ -1,4 +1,4 @@ -*editing.txt* For Vim version 9.1. Last change: 2024 Oct 14 +*editing.txt* For Vim version 9.1. Last change: 2025 Apr 03 VIM REFERENCE MANUAL by Bram Moolenaar @@ -974,8 +974,9 @@ Note: When the 'write' option is off, you are not able to write any file. executed like with ":!{cmd}", any '!' is replaced with the previous command |:!|. -The default [range] for the ":w" command is the whole buffer (1,$). If you -write the whole buffer, it is no longer considered changed. When you +The default [range] for the ":w" command is the whole buffer (1,$). The |'[| +and |']| marks will be set to the [range] being used for the write command. +If you write the whole buffer, it is no longer considered changed. When you write it to a different file with ":w somefile" it depends on the "+" flag in 'cpoptions'. When included, the write command will reset the 'modified' flag, even though the buffer itself may still be different from its file.