From bed9839f46047abd81f7c9b56936ba177829221c Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Tue, 1 Dec 2020 00:15:12 +0100 Subject: ex_getln: add secret charm 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 function! Spacey() return getcmdline()[-1:] == "/" ? "\" : "" endfunc cnoremap / wildmenumode() ? Spacey()."/" : "/" Possibly asked questions: What about backwards compatibility? ==== Just do nothing and your existing 'wildchar' and 'wildcharm' will keep working. Doesn't `` mean suspend? ==== Not in cmdline mode. If it would then the recommended wildcharm would not have been `` to start with. My config relies on `:` being a synonym to `:`! ==== just no. --- runtime/doc/cmdline.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt index 562a1f23ac..098245b5a8 100644 --- a/runtime/doc/cmdline.txt +++ b/runtime/doc/cmdline.txt @@ -215,6 +215,9 @@ CTRL-Y When there is a modeless selection, copy the selection into the clipboard. If there is no selection CTRL-Y is inserted as a character. + *c_CTRL-Z* +CTRL-Z Trigger 'wildmode'. Same as 'wildcharm', but always available. + CTRL-M or CTRL-J *c_CTRL-M* *c_CTRL-J* *c_* *c_* *c_CR* or start entered command -- cgit