aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-12-01 00:15:12 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2020-12-01 00:57:52 +0100
commitbed9839f46047abd81f7c9b56936ba177829221c (patch)
tree132ae30cb74c001a13962c3a07e11ebe12408535 /runtime
parentaec61074a97bac3290f1afef309429b35a71d1a2 (diff)
downloadrneovim-bed9839f46047abd81f7c9b56936ba177829221c.tar.gz
rneovim-bed9839f46047abd81f7c9b56936ba177829221c.tar.bz2
rneovim-bed9839f46047abd81f7c9b56936ba177829221c.zip
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 <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.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/cmdline.txt3
1 files changed, 3 insertions, 0 deletions
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_<NL>* *c_<CR>* *c_CR*
<CR> or <NL> start entered command