mirror of
https://github.com/neovim/neovim.git
synced 2024-12-21 11:45:01 -07:00
bed9839f46
Opt in to this secret world using set wildchar=0 " already the default, but remove if non-zero existing config: set wildcharm=0 now you can map 'wildmode' just like any mode: cnoremap <tab> <c-z> function! Spacey() return getcmdline()[-1:] == "/" ? "\<bs>" : "" endfunc cnoremap <expr> / wildmenumode() ? Spacey()."/<c-z>" : "/" Possibly asked questions: What about backwards compatibility? ==== Just do nothing and your existing 'wildchar' and 'wildcharm' will keep working. Doesn't `<c-z>` mean suspend? ==== Not in cmdline mode. If it would then the recommended wildcharm would not have been `<c-z>` to start with. My config relies on `:<c-z>` being a synonym to `:<nop>`! ==== just no. |
||
---|---|---|
.. | ||
api | ||
autocmd | ||
autoread | ||
cmdline | ||
core | ||
eval | ||
ex_cmds | ||
fixtures | ||
insert | ||
legacy | ||
lua | ||
normal | ||
options | ||
plugin | ||
provider | ||
shada | ||
terminal | ||
ui | ||
viml | ||
visual | ||
example_spec.lua | ||
helpers.lua | ||
preload.lua |