File tree Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Original file line number Diff line number Diff line change 1- *usr_21.txt* For Vim バージョン 9.1. Last change: 2019 Apr 25
1+ *usr_21.txt* For Vim バージョン 9.1. Last change: 2024 May 17
22
33 VIM USER MANUAL - by Bram Moolenaar
44
@@ -200,6 +200,23 @@ Vim を終了するたびにマークが設定されます。最新のマーク
200200
201201"2" を入力して <Enter> を押し、二番目のファイルを開きます。
202202
203+ ファイル名にパターンが含まれていることが分かっている場合は、ファイルのリストを
204+ | :filter | することもできます: >
205+
206+ :filter /resume/ :browse oldfiles
207+ <
208+ マッチするファイル名が 1 つだけの場合、Vim はプロンプトを表示せずにそのファイ
209+ ルを直接編集します。フィルターが複数のファイルにマッチする場合は、代わりにマッ
210+ チするファイルのリストの入力を求めるプロンプトが表示されます: >
211+
212+ :filter! /resume/ browse oldfiles
213+ < 1: ~/.viminfo ~
214+ 3: /tmp/draft ~
215+ Type number and <Enter> (q or empty cancels): ~
216+
217+ Note: 今回は、レジュメにマッチしないファイルをすべて除外しました:
218+
219+
203220詳細は | :oldfiles | 、| v:oldfiles | 、| c_#< | を参照してください。
204221
205222
Original file line number Diff line number Diff line change 1- *usr_21.txt* For Vim version 9.1. Last change: 2019 Apr 25
1+ *usr_21.txt* For Vim version 9.1. Last change: 2024 May 17
22
33 VIM USER MANUAL - by Bram Moolenaar
44
@@ -207,6 +207,23 @@ You get the same list of files as with |:oldfiles|. If you want to edit
207207
208208Type "2" and press <Enter> to edit the second file.
209209
210+ If you know that the filename contains a pattern, you can also | :filter | the
211+ list of files: >
212+
213+ :filter /resume/ :browse oldfiles
214+ <
215+ Since there is only one single matching filename, Vim will directly edit that
216+ file without prompting. If the filter matches several files, you'll get
217+ prompted for the list of matching files instead: >
218+
219+ :filter! /resume/ browse oldfiles
220+ < 1: ~/.viminfo ~
221+ 3: /tmp/draft ~
222+ Type number and <Enter> (q or empty cancels): ~
223+
224+ Note: this time we filtered out all files NOT matching resume.
225+
226+
210227More info at | :oldfiles | , | v:oldfiles | and | c_#< | .
211228
212229
You can’t perform that action at this time.
0 commit comments