diff --git a/doc/message.jax b/doc/message.jax index abfe7b2ed..d7266803c 100644 --- a/doc/message.jax +++ b/doc/message.jax @@ -1,4 +1,4 @@ -*message.txt* For Vim バージョン 9.1. Last change: 2025 Oct 12 +*message.txt* For Vim バージョン 9.1. Last change: 2025 Nov 01 VIM リファレンスマニュアル by Bram Moolenaar @@ -636,6 +636,22 @@ http://groups.yahoo.com/group/solarisonintel/message/12179. と。'buftype' が空でない場合は、このメッセージは表示されない。 |FileChangedShell| 自動コマンドも参照。 +次のオプションを含むダイアログが表示される: + +"OK": 警告を無視して編集を続行する。変更は読み込まれず、バッファはそ + のまま残る。 + +"Load File": ディスクからファイルを再読み込みし、現在のバッファの内容を置き + 換える。Vim で行った変更のうち保存されていないものはすべて失わ + れる。 + +"Load File and Options": + ディスクからファイルを再読み込みし、インデント、構文ハイライ + ト、テキスト幅、その他のファイルタイプ固有のオプションなど、関 + 連するファイル設定を適用する。これにより、現在の設定と自動コマ + ンドに基づいて、バッファがファイルの意図した構成と一致するよう + になる。 + 何も間違ったことをしていないのに、このメッセージを受け取る可能性が1つ考えられ る: 夏時間が始まる日にWindowsでファイルを保存した場合である。この場合、次の方 法のうちどれかで修正できる: > diff --git a/en/message.txt b/en/message.txt index 33b8fbdfe..a8d7b577c 100644 --- a/en/message.txt +++ b/en/message.txt @@ -1,4 +1,4 @@ -*message.txt* For Vim version 9.1. Last change: 2025 Oct 12 +*message.txt* For Vim version 9.1. Last change: 2025 Nov 01 VIM REFERENCE MANUAL by Bram Moolenaar @@ -644,6 +644,22 @@ Set the 'autoread' option if you want to do this automatically. This message is not given when 'buftype' is not empty. Also see the |FileChangedShell| autocommand. +You will be given a dialog with the following options: + +"OK": Dismiss the warning and continue editing. No changes are + loaded, the buffer remains as it is. + +"Load File": Reload the file from disk, replacing the current buffer + contents. Any changes you made in Vim that haven't been saved + will be lost. + +"Load File and Options": + Reload the file from disk and, in addition, apply relevant + file settings, such as indentation, syntax highlighting, text + width, and other filetype-specific options. This ensures the + buffer matches the file's intended configuration according to + your current settings and autocommands. + There is one situation where you get this message even though there is nothing wrong: If you save a file in Windows on the day the daylight saving time starts. It can be fixed in one of these ways: