File tree Expand file tree Collapse file tree 2 files changed +22
-9
lines changed Expand file tree Collapse file tree 2 files changed +22
-9
lines changed Original file line number Diff line number Diff line change 1- *editing.txt* For Vim バージョン 9.1. Last change: 2025 Apr 03
1+ *editing.txt* For Vim バージョン 9.1. Last change: 2025 Jun 04
22
33
44 VIMリファレンスマニュアル by Bram Moolenaar
@@ -1326,10 +1326,17 @@ Motif上のVimでは同じ書式が使えるが、実際には1番目のパタ
13261326 フィルタは、変数 b:browsefilter を設定することでバッファ毎に設定できる。
13271327b:browsefilter はファイルタイププラグインで設定することが一番多いだろう。
13281328するとファイルブラウザーダイアログには現在編集中のファイルのタイプに関連した候
1329- 補が表示される。弊害: 別の種類のファイルの編集が始め辛くなる。対策は、フィルタ
1330- の最後の項目に Windows では "All Files (*.*)\t*\n" を、他のプラットフォームで
1331- は "All Files (*)\t*\n" を加え、ユーザーが望みのファイルにアクセスできる道を残
1332- すことだ。
1329+ 補が表示される。弊害: 別の種類のファイルの編集が始め辛くなる。これを克服するた
1330+ めに、以下を追加することができる >
1331+
1332+ All Files\t(*.*)\t*\n
1333+ <
1334+ Windows の最終フィルタとして、または >
1335+
1336+ All Files\t(*)\t*\n
1337+ <
1338+ 他のプラットフォームでも、ユーザーが必要なファイルに引き続きアクセスできるよう
1339+ にする。
13331340
13341341Vim が browsefilter をサポートしていないときにそれを設定しないようにするには、
13351342has("browsefilter") が使える: >
Original file line number Diff line number Diff line change 1- *editing.txt* For Vim version 9.1. Last change: 2025 Apr 03
1+ *editing.txt* For Vim version 9.1. Last change: 2025 Jun 04
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1342,9 +1342,15 @@ b:browsefilter variable. You would most likely set b:browsefilter in a
13421342filetype plugin, so that the browse dialog would contain entries related to
13431343the type of file you are currently editing. Disadvantage: This makes it
13441344difficult to start editing a file of a different type. To overcome this, you
1345- may want to add "All Files (*.*)\t*\n" as the final filter on Windows or "All
1346- Files (*)\t*\n" on other platforms, so that the user can still access any
1347- desired file.
1345+ may want to add >
1346+
1347+ All Files\t(*.*)\t*\n
1348+ <
1349+ as the final filter on Windows or >
1350+
1351+ All Files\t(*)\t*\n
1352+ <
1353+ on other platforms, so that the user can still access any desired file.
13481354
13491355To avoid setting browsefilter when Vim does not actually support it, you can
13501356use has("browsefilter"): >
You can’t perform that action at this time.
0 commit comments