From a36d3c6c931e85d74bdd1a8ed0b0af4d2fd7ba96 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 31 Dec 2015 09:04:42 -0500 Subject: [PATCH] KEYTIMEOUT=15 to avoid issues --- zsh/keybinds | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zsh/keybinds b/zsh/keybinds index 7c39389b..5d7c71b6 100644 --- a/zsh/keybinds +++ b/zsh/keybinds @@ -1,5 +1,11 @@ #!/usr/bin/env zsh +# Ran into an issue where the surround module wasn't working if KEYTIMEOUT is <= 10. +# Specifically, (delete|change)-surround immediately abort into insert mode if +# KEYTIMEOUT <= 8, and if <= 10, then add-surround would do the same. At 11, all these +# issues vanish. Very strange! +export KEYTIMEOUT=15 + autoload -U is-at-least bindkey -v @@ -113,7 +119,6 @@ bindkey "^[[3~" delete-char bindkey "^[3;5~" delete-char # Fix vimmish ESC -export KEYTIMEOUT=10 # just enough time for jk bindkey -sM vicmd '^[' '^G' bindkey -rM viins '^X' bindkey -M viins '^X,' _history-complete-newer \