mirror of
https://github.com/neovim/neovim.git
synced 2026-01-06 11:27:26 +10:00
Merge pull request #35690 from zeertzjq/vim-9.1.1738
vim-patch:9.1.{1738,1744},d7d6a6f
This commit is contained in:
26
runtime/lua/vim/_meta/vimfn.lua
generated
26
runtime/lua/vim/_meta/vimfn.lua
generated
@@ -10835,7 +10835,6 @@ function vim.fn.wildmenumode() end
|
||||
|
||||
--- Start wildcard expansion in the command-line, using the
|
||||
--- behavior defined by the 'wildmode' and 'wildoptions' settings.
|
||||
--- See |cmdline-completion|.
|
||||
---
|
||||
--- This function also enables completion in search patterns such
|
||||
--- as |/|, |?|, |:s|, |:g|, |:v| and |:vimgrep|.
|
||||
@@ -10843,22 +10842,15 @@ function vim.fn.wildmenumode() end
|
||||
--- Unlike pressing 'wildchar' manually, this function does not
|
||||
--- produce a beep when no matches are found and generally
|
||||
--- operates more quietly. This makes it suitable for triggering
|
||||
--- completion automatically, such as from an |:autocmd|.
|
||||
--- *cmdline-autocompletion*
|
||||
--- Example: To make the completion menu pop up automatically as
|
||||
--- you type on the command line, use: >vim
|
||||
--- autocmd CmdlineChanged [:/\?] call wildtrigger()
|
||||
--- set wildmode=noselect:lastused,full wildoptions=pum
|
||||
--- <
|
||||
--- To retain normal history navigation (up/down keys): >vim
|
||||
--- cnoremap <Up> <C-U><Up>
|
||||
--- cnoremap <Down> <C-U><Down>
|
||||
--- <
|
||||
--- To set an option specifically when performing a search, e.g.
|
||||
--- to set 'pumheight': >vim
|
||||
--- autocmd CmdlineEnter [/\?] set pumheight=8
|
||||
--- autocmd CmdlineLeave [/\?] set pumheight&
|
||||
--- <
|
||||
--- completion automatically.
|
||||
---
|
||||
--- Note: After navigating command-line history, the first call to
|
||||
--- wildtrigger() is a no-op; a second call is needed to start
|
||||
--- expansion. This is to support history navigation in
|
||||
--- command-line autocompletion.
|
||||
---
|
||||
--- See |cmdline-autocompletion|.
|
||||
---
|
||||
--- Return value is always 0.
|
||||
---
|
||||
--- @return number
|
||||
|
||||
Reference in New Issue
Block a user