Skip to content

Commit a25899a

Browse files
authored
Merge pull request #2025 from h-east/update-editing
Update editing.{txt,jax}
2 parents 80b2e7c + 748f353 commit a25899a

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

doc/editing.jax

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*editing.txt* For Vim バージョン 9.1. Last change: 2024 Oct 14
1+
*editing.txt* For Vim バージョン 9.1. Last change: 2025 Apr 03
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -968,8 +968,9 @@ Note: オプション 'write' がオフのときは、どのファイルも書
968968
前の空白に注意)。{cmd} は ":!{cmd}" のように実行され、
969969
全ての '!' は前回のコマンドに置き換えられる |:!|
970970

971-
コマンド ":w" での [range] の既定値はバッファ全体 (1,$) である。バッファ全体を
972-
書き込むと、そのバッファは変更されていないとみなされるようになる。
971+
コマンド ":w" での [range] の既定値はバッファ全体 (1,$) である。|'[| および
972+
|']| マークは、書き込みコマンドに使用される [range] に設定される。バッファ全体
973+
を書き込むと、そのバッファは変更されていないとみなされるようになる。
973974
":w somefile" によって別のファイルに書き出した場合は、'cpoptions' の "+" フラ
974975
グに依存する。"+" が含まれている場合は、バッファがまだ元のファイルと異なってい
975976
たとしても、書き込みコマンドによって 'modified' フラグがオフになる。

en/editing.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*editing.txt* For Vim version 9.1. Last change: 2024 Oct 14
1+
*editing.txt* For Vim version 9.1. Last change: 2025 Apr 03
22

33

44
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.
974974
executed like with ":!{cmd}", any '!' is replaced with
975975
the previous command |:!|.
976976

977-
The default [range] for the ":w" command is the whole buffer (1,$). If you
978-
write the whole buffer, it is no longer considered changed. When you
977+
The default [range] for the ":w" command is the whole buffer (1,$). The |'[|
978+
and |']| marks will be set to the [range] being used for the write command.
979+
If you write the whole buffer, it is no longer considered changed. When you
979980
write it to a different file with ":w somefile" it depends on the "+" flag in
980981
'cpoptions'. When included, the write command will reset the 'modified' flag,
981982
even though the buffer itself may still be different from its file.

0 commit comments

Comments
 (0)