From 17226b3d29a499140c820e82c704437d11dce3e2 Mon Sep 17 00:00:00 2001 From: Samantha McVey Date: Fri, 23 Jun 2017 13:56:16 -0700 Subject: [PATCH] [runcoms/zpreztorc] Suggest changing the key timeout for vi mode users Set the time for zsh to wait for additional keypresses. In vi mode you should set this to 1 (0.1s) to remove the delay from entering and exiting vicmd mode. The default is 0.5s. Recommended in vi mode, but setting too low in emacs mode will not allow time to enter additional keypresses. --- runcoms/zpreztorc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/runcoms/zpreztorc b/runcoms/zpreztorc index 690add7af2..78f03d909e 100644 --- a/runcoms/zpreztorc +++ b/runcoms/zpreztorc @@ -48,6 +48,13 @@ zstyle ':prezto:load' pmodule \ # Set the key mapping style to 'emacs' or 'vi'. zstyle ':prezto:module:editor' key-bindings 'emacs' +# Set the time for zsh to wait for additional keypresses. In vi mode you +# can set this to 1 (0.01s) to remove the delay from entering and +# exiting vicmd mode. The default is 0.4s (KEYTIMEOUT=40) +# Recommended in vi mode, but setting too low in emacs mode will not allow +# time to enter additional keypresses. +#export KEYTIMEOUT=1 + # Auto convert .... to ../.. # zstyle ':prezto:module:editor' dot-expansion 'yes'