From 5c91bc23a2999382a40e53b0f54438610389c83d Mon Sep 17 00:00:00 2001 From: druckdev Date: Sat, 2 Jan 2021 00:40:01 +0100 Subject: [PATCH] zsh:keys: Increase KEYTIMEOUT a bit --- .config/zsh/zshrc.d/60-keys.zsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/zsh/zshrc.d/60-keys.zsh b/.config/zsh/zshrc.d/60-keys.zsh index 2077974..78d9273 100644 --- a/.config/zsh/zshrc.d/60-keys.zsh +++ b/.config/zsh/zshrc.d/60-keys.zsh @@ -19,8 +19,10 @@ for m in visual viopp; do done done -# no delay when switching into NORMAL -export KEYTIMEOUT=1 +# Decrease delay when switching into NORMAL mode. +# A timeout is still necessary as otherwise multi character bindings (for +# example in vicmd) do not work. +export KEYTIMEOUT=20 function zle-line-init zle-keymap-select { # Switch cursor style depending on mode