Skip to content

Commit 5c1fca6

Browse files
authored
Merge pull request #2303 from h-east/update-builtin
Update builtin.{txt,jax}
2 parents 10607ae + a804840 commit 5c1fca6

File tree

2 files changed

+20
-37
lines changed

2 files changed

+20
-37
lines changed

doc/builtin.jax

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim バージョン 9.1. Last change: 2025 Sep 02
1+
*builtin.txt* For Vim バージョン 9.1. Last change: 2025 Sep 08
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -12148,30 +12148,21 @@ wildmenumode() *wildmenumode()*
1214812148
wildtrigger() *wildtrigger()*
1214912149
コマンドラインでワイルドカードの展開を開始する。'wildmode' お
1215012150
よび 'wildoptions' の設定で定義された動作に従う。
12151-
|cmdline-completion| を参照。
1215212151

1215312152
この関数は、|/|、|?|、|:s|、|:g|、|:v|、|:vimgrep| などの検索
1215412153
パターンの補完も有効にする。
1215512154

1215612155
手動で 'wildchar' を押す場合とは異なり、この関数はマッチするも
1215712156
のが見つからない場合でもビープ音を鳴らさず、全体的に静かに動作
12158-
する。そのため、|:autocmd| などから自動的に補完を開始するのに
12159-
適している。
12160-
*cmdline-autocompletion*
12161-
例: コマンドラインで入力中に補完メニューを自動的に表示させるに
12162-
は、以下を使用する: >
12163-
autocmd CmdlineChanged [:/\?] call wildtrigger()
12164-
set wildmode=noselect:lastused,full wildoptions=pum
12165-
<
12166-
通常の履歴ナビゲーションを維持するには (上/下キー): >
12167-
cnoremap <Up> <C-U><Up>
12168-
cnoremap <Down> <C-U><Down>
12169-
<
12170-
検索を実行するときにオプションを具体的に設定するには、例えば、
12171-
'pumheights' を設定する: >
12172-
autocmd CmdlineEnter [/\?] set pumheight=8
12173-
autocmd CmdlineLeave [/\?] set pumheight&
12174-
<
12157+
する。そのため、自動的に補完を開始するのに適している。
12158+
12159+
Note: コマンドライン履歴をナビゲートした後、最初の
12160+
wildtrigger() 呼び出しは何も行わない。展開を開始するには、2 回
12161+
目の呼び出しが必要である。これは、コマンドラインの自動補完にお
12162+
ける履歴ナビゲーションをサポートするためである。
12163+
12164+
|cmdline-autocompletion| を参照。
12165+
1217512166
戻り値は常に 0 である。
1217612167

1217712168
戻り値の型: |Number|

en/builtin.txt

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim version 9.1. Last change: 2025 Sep 02
1+
*builtin.txt* For Vim version 9.1. Last change: 2025 Sep 08
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -12407,30 +12407,22 @@ wildmenumode() *wildmenumode()*
1240712407
wildtrigger() *wildtrigger()*
1240812408
Start wildcard expansion in the command-line, using the
1240912409
behavior defined by the 'wildmode' and 'wildoptions' settings.
12410-
See |cmdline-completion|.
1241112410

1241212411
This function also enables completion in search patterns such
1241312412
as |/|, |?|, |:s|, |:g|, |:v| and |:vimgrep|.
1241412413

1241512414
Unlike pressing 'wildchar' manually, this function does not
1241612415
produce a beep when no matches are found and generally
1241712416
operates more quietly. This makes it suitable for triggering
12418-
completion automatically, such as from an |:autocmd|.
12419-
*cmdline-autocompletion*
12420-
Example: To make the completion menu pop up automatically as
12421-
you type on the command line, use: >
12422-
autocmd CmdlineChanged [:/\?] call wildtrigger()
12423-
set wildmode=noselect:lastused,full wildoptions=pum
12424-
<
12425-
To retain normal history navigation (up/down keys): >
12426-
cnoremap <Up> <C-U><Up>
12427-
cnoremap <Down> <C-U><Down>
12428-
<
12429-
To set an option specifically when performing a search, e.g.
12430-
to set 'pumheight': >
12431-
autocmd CmdlineEnter [/\?] set pumheight=8
12432-
autocmd CmdlineLeave [/\?] set pumheight&
12433-
<
12417+
completion automatically.
12418+
12419+
Note: After navigating command-line history, the first call to
12420+
wildtrigger() is a no-op; a second call is needed to start
12421+
expansion. This is to support history navigation in
12422+
command-line autocompletion.
12423+
12424+
See |cmdline-autocompletion|.
12425+
1243412426
Return value is always 0.
1243512427

1243612428
Return type: |Number|

0 commit comments

Comments
 (0)