diff --git a/doc/editing.jax b/doc/editing.jax index 8ddc4d924..7e7f86816 100644 --- a/doc/editing.jax +++ b/doc/editing.jax @@ -1,4 +1,4 @@ -*editing.txt* For Vim バージョン 9.1. Last change: 2025 Apr 03 +*editing.txt* For Vim バージョン 9.1. Last change: 2025 Jun 04 VIMリファレンスマニュアル by Bram Moolenaar @@ -1326,10 +1326,17 @@ Motif上のVimでは同じ書式が使えるが、実際には1番目のパタ フィルタは、変数 b:browsefilter を設定することでバッファ毎に設定できる。 b:browsefilter はファイルタイププラグインで設定することが一番多いだろう。 するとファイルブラウザーダイアログには現在編集中のファイルのタイプに関連した候 -補が表示される。弊害: 別の種類のファイルの編集が始め辛くなる。対策は、フィルタ -の最後の項目に Windows では "All Files (*.*)\t*\n" を、他のプラットフォームで -は "All Files (*)\t*\n" を加え、ユーザーが望みのファイルにアクセスできる道を残 -すことだ。 +補が表示される。弊害: 別の種類のファイルの編集が始め辛くなる。これを克服するた +めに、以下を追加することができる > + + All Files\t(*.*)\t*\n +< +Windows の最終フィルタとして、または > + + All Files\t(*)\t*\n +< +他のプラットフォームでも、ユーザーが必要なファイルに引き続きアクセスできるよう +にする。 Vim が browsefilter をサポートしていないときにそれを設定しないようにするには、 has("browsefilter") が使える: > diff --git a/en/editing.txt b/en/editing.txt index a88aad1a7..dbb991e56 100644 --- a/en/editing.txt +++ b/en/editing.txt @@ -1,4 +1,4 @@ -*editing.txt* For Vim version 9.1. Last change: 2025 Apr 03 +*editing.txt* For Vim version 9.1. Last change: 2025 Jun 04 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1342,9 +1342,15 @@ b:browsefilter variable. You would most likely set b:browsefilter in a filetype plugin, so that the browse dialog would contain entries related to the type of file you are currently editing. Disadvantage: This makes it difficult to start editing a file of a different type. To overcome this, you -may want to add "All Files (*.*)\t*\n" as the final filter on Windows or "All -Files (*)\t*\n" on other platforms, so that the user can still access any -desired file. +may want to add > + + All Files\t(*.*)\t*\n +< +as the final filter on Windows or > + + All Files\t(*)\t*\n +< +on other platforms, so that the user can still access any desired file. To avoid setting browsefilter when Vim does not actually support it, you can use has("browsefilter"): >