From ffd73c57c1bbcfc0469ee960c3f32c640aad58d8 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 13 Apr 2021 15:47:24 +0200 Subject: [PATCH] Improve "cnoremap " mapping Closes https://github.com/mhinz/vim-galore/issues/148 --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0f612e5..7362e1d 100644 --- a/README.md +++ b/README.md @@ -2020,13 +2020,16 @@ So far, so good. But `` and `` are even smarter! They recall the command-line whose beginning matches the current command-line. E.g. `:echo ` may change to `:echo "Vim rocks!"`. -Of course, I don't want you to reach to the arrow keys, just map it instead: +Of course, I don't want you to reach for the arrow keys: ```vim -cnoremap -cnoremap +cnoremap wildmenumode() ? "\" : "\" +cnoremap wildmenumode() ? "\" : "\" ``` +Here we also distinguish between command-line history and the wildmenu. See `:h +'wildmenu'`. + I depend on this behaviour several times a day. ## Saner CTRL-L