mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:d82c918: runtime(doc): Improve doc for cmdline-autocomplete (#35235)
Maybe this was unnecessary, but saw this:
https://github.com/vim/vim/issues/17854
d82c918e2f
Co-authored-by: Girish Palya <girishji@gmail.com>
This commit is contained in:
@@ -1239,8 +1239,10 @@ Example: >
|
|||||||
:au CmdwinLeave : let &cpt = b:cpt_save
|
:au CmdwinLeave : let &cpt = b:cpt_save
|
||||||
This sets 'complete' to use completion in the current window for |i_CTRL-N|.
|
This sets 'complete' to use completion in the current window for |i_CTRL-N|.
|
||||||
Another example: >
|
Another example: >
|
||||||
:au CmdwinEnter [/?] startinsert
|
:au CmdwinEnter [/\?] startinsert
|
||||||
This will make Vim start in Insert mode in the command-line window.
|
This will make Vim start in Insert mode in the command-line window.
|
||||||
|
Note: The "?" needs to be escaped, as this is a |file-pattern|. See also
|
||||||
|
|cmdline-autocompletion|.
|
||||||
|
|
||||||
*cmdline-char* *cmdwin-char*
|
*cmdline-char* *cmdwin-char*
|
||||||
The character used for the pattern indicates the type of command-line:
|
The character used for the pattern indicates the type of command-line:
|
||||||
|
@@ -11911,6 +11911,11 @@ wildtrigger() *wildtrigger()*
|
|||||||
To retain normal history navigation (up/down keys): >vim
|
To retain normal history navigation (up/down keys): >vim
|
||||||
cnoremap <Up> <C-U><Up>
|
cnoremap <Up> <C-U><Up>
|
||||||
cnoremap <Down> <C-U><Down>
|
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&
|
||||||
<
|
<
|
||||||
Return value is always 0.
|
Return value is always 0.
|
||||||
|
|
||||||
|
5
runtime/lua/vim/_meta/vimfn.lua
generated
5
runtime/lua/vim/_meta/vimfn.lua
generated
@@ -10844,6 +10844,11 @@ function vim.fn.wildmenumode() end
|
|||||||
--- cnoremap <Up> <C-U><Up>
|
--- cnoremap <Up> <C-U><Up>
|
||||||
--- cnoremap <Down> <C-U><Down>
|
--- 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&
|
||||||
|
--- <
|
||||||
--- Return value is always 0.
|
--- Return value is always 0.
|
||||||
---
|
---
|
||||||
--- @return number
|
--- @return number
|
||||||
|
@@ -13102,6 +13102,11 @@ M.funcs = {
|
|||||||
cnoremap <Up> <C-U><Up>
|
cnoremap <Up> <C-U><Up>
|
||||||
cnoremap <Down> <C-U><Down>
|
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&
|
||||||
|
<
|
||||||
Return value is always 0.
|
Return value is always 0.
|
||||||
]==],
|
]==],
|
||||||
name = 'wildtrigger',
|
name = 'wildtrigger',
|
||||||
|
Reference in New Issue
Block a user