|
1 |
| -*builtin.txt* For Vim version 9.1. Last change: 2025 Jul 17 |
| 1 | +*builtin.txt* For Vim version 9.1. Last change: 2025 Jul 21 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -757,6 +757,7 @@ virtcol2col({winid}, {lnum}, {col})
|
757 | 757 | Number byte index of a character on screen
|
758 | 758 | visualmode([{expr}]) String last visual mode used
|
759 | 759 | wildmenumode() Number whether 'wildmenu' mode is active
|
| 760 | +wildtrigger() Number start wildcard expansion |
760 | 761 | win_execute({id}, {command} [, {silent}])
|
761 | 762 | String execute {command} in window {id}
|
762 | 763 | win_findbuf({bufnr}) List find windows containing {bufnr}
|
@@ -12331,6 +12332,33 @@ wildmenumode() *wildmenumode()*
|
12331 | 12332 | Return type: |Number|
|
12332 | 12333 |
|
12333 | 12334 |
|
| 12335 | +wildtrigger() *wildtrigger()* |
| 12336 | + Start wildcard expansion in the command-line, using the |
| 12337 | + behavior defined by the 'wildmode' and 'wildoptions' settings. |
| 12338 | + See |cmdline-completion|. |
| 12339 | + |
| 12340 | + This function also enables completion in search patterns such |
| 12341 | + as |/|, |?|, |:s|, |:g|, |:v| and |:vimgrep|. |
| 12342 | + |
| 12343 | + Unlike pressing 'wildchar' manually, this function does not |
| 12344 | + produce a beep when no matches are found and generally |
| 12345 | + operates more quietly. This makes it suitable for triggering |
| 12346 | + completion automatically, such as from an |:autocmd|. |
| 12347 | + *cmdline-autocompletion* |
| 12348 | + Example: To make the completion menu pop up automatically as |
| 12349 | + you type on the command line, use: > |
| 12350 | + autocmd CmdlineChanged [:/?] call wildtrigger() |
| 12351 | + set wildmode=noselect:lastused,full wildoptions=pum |
| 12352 | +< |
| 12353 | + To retain normal history navigation (up/down keys): > |
| 12354 | + cnoremap <Up> <C-U><Up> |
| 12355 | + cnoremap <Down> <C-U><Down> |
| 12356 | +< |
| 12357 | + Return value is always 0. |
| 12358 | + |
| 12359 | + Return type: |Number| |
| 12360 | + |
| 12361 | + |
12334 | 12362 | win_execute({id}, {command} [, {silent}]) *win_execute()*
|
12335 | 12363 | Like `execute()` but in the context of window {id}.
|
12336 | 12364 | The window will temporarily be made the current window,
|
|
0 commit comments