Skip to content

Update usr_21.{txt,jax} #1551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion doc/usr_21.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*usr_21.txt* For Vim バージョン 9.1. Last change: 2019 Apr 25
*usr_21.txt* For Vim バージョン 9.1. Last change: 2024 May 17

VIM USER MANUAL - by Bram Moolenaar

Expand Down Expand Up @@ -200,6 +200,23 @@ Vim を終了するたびにマークが設定されます。最新のマーク

"2" を入力して <Enter> を押し、二番目のファイルを開きます。

ファイル名にパターンが含まれていることが分かっている場合は、ファイルのリストを
|:filter| することもできます: >

:filter /resume/ :browse oldfiles
<
マッチするファイル名が 1 つだけの場合、Vim はプロンプトを表示せずにそのファイ
ルを直接編集します。フィルターが複数のファイルにマッチする場合は、代わりにマッ
チするファイルのリストの入力を求めるプロンプトが表示されます: >

:filter! /resume/ browse oldfiles
< 1: ~/.viminfo ~
3: /tmp/draft ~
Type number and <Enter> (q or empty cancels): ~

Note: 今回は、resume にマッチしないファイルをすべて除外しました:


詳細は |:oldfiles|、|v:oldfiles|、|c_#<| を参照してください。


Expand Down
19 changes: 18 additions & 1 deletion en/usr_21.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*usr_21.txt* For Vim version 9.1. Last change: 2019 Apr 25
*usr_21.txt* For Vim version 9.1. Last change: 2024 May 17

VIM USER MANUAL - by Bram Moolenaar

Expand Down Expand Up @@ -207,6 +207,23 @@ You get the same list of files as with |:oldfiles|. If you want to edit

Type "2" and press <Enter> to edit the second file.

If you know that the filename contains a pattern, you can also |:filter| the
list of files: >

:filter /resume/ :browse oldfiles
<
Since there is only one single matching filename, Vim will directly edit that
file without prompting. If the filter matches several files, you'll get
prompted for the list of matching files instead: >

:filter! /resume/ browse oldfiles
< 1: ~/.viminfo ~
3: /tmp/draft ~
Type number and <Enter> (q or empty cancels): ~

Note: this time we filtered out all files NOT matching resume.


More info at |:oldfiles|, |v:oldfiles| and |c_#<|.


Expand Down