mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 07:48:18 +00:00
vim-patch:5a9ef93: runtime(doc): Update autocmd examples for command line autocompletion (#35713)
In Windows [/] should be escaped [\/]:
autocmd CmdlineChanged [:\/\?] call wildtrigger()
This updated example works both in Linux and Windows.
closes: vim/vim#18262
5a9ef93b2c
Co-authored-by: Maxim Kim <habamax@gmail.com>
This commit is contained in:
@@ -1268,7 +1268,7 @@ automatically showing a popup menu of suggestions as you type, whether
|
|||||||
searching (/ or ?) or entering commands (:).
|
searching (/ or ?) or entering commands (:).
|
||||||
|
|
||||||
A basic setup is: >
|
A basic setup is: >
|
||||||
autocmd CmdlineChanged [:/\?] call wildtrigger()
|
autocmd CmdlineChanged [:\/\?] call wildtrigger()
|
||||||
set wildmode=noselect:lastused,full
|
set wildmode=noselect:lastused,full
|
||||||
set wildoptions=pum
|
set wildoptions=pum
|
||||||
|
|
||||||
@@ -1281,8 +1281,8 @@ To retain normal command-line history navigation with <Up>/<Down>: >
|
|||||||
|
|
||||||
Options can also be applied only for specific command-lines. For
|
Options can also be applied only for specific command-lines. For
|
||||||
example, to use a shorter popup menu height only during search: >
|
example, to use a shorter popup menu height only during search: >
|
||||||
autocmd CmdlineEnter [/\?] set pumheight=8
|
autocmd CmdlineEnter [\/\?] set pumheight=8
|
||||||
autocmd CmdlineLeave [/\?] set pumheight&
|
autocmd CmdlineLeave [\/\?] set pumheight&
|
||||||
|
|
||||||
EXTRAS *fuzzy-file-picker* *live-grep*
|
EXTRAS *fuzzy-file-picker* *live-grep*
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user