From d302f40ffc962b01a06f51ad3440d30fddbcb3bc Mon Sep 17 00:00:00 2001 From: bretello Date: Wed, 8 Dec 2021 23:53:09 +0100 Subject: [PATCH] zsh: make visual editing work --- brethil_dotfile.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brethil_dotfile.sh b/brethil_dotfile.sh index a96859c..a3347c2 100755 --- a/brethil_dotfile.sh +++ b/brethil_dotfile.sh @@ -51,7 +51,8 @@ export VI_MODE_RESET_PROMPT_ON_MODE_CHANGE=true # refresh prompt on every mode c # Fix delete (delete! not backspace) key bindkey -a '^[[3~' delete-char -export KEYTIMEOUT=1 # reduce the transition time between vim modes to 0.1s +export KEYTIMEOUT=50 # reduce the transition time between vim modes to 0.1s +# bindkey -M vicmd 'V' edit-command-line # this remaps `vv` to `V` (but overrides `visual-mode`) # add this if the keytimeout is too slow export HISTSIZE=10000000