-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[runcoms/zpreztorc] Suggest changing the key timeout for vi mode users #1347
base: master
Are you sure you want to change the base?
Conversation
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.
Most of the info I can find about this seems to imply that setting KEYTIMEOUT might mess with other things. https://superuser.com/a/648046 It may be worth looking into some of those workarounds as well. |
On Wednesday, June 28, 2017 2:08:05 PM PDT Kaleb Elwert wrote:
Most of the info I can find about this seems to imply that setting KEYTIMEOUT might mess with other things. https://superuser.com/a/648046
It may be worth looking into some of those workarounds as well.
That answer is not applicable because in zprezto escape key *is* bound to something. Entering vicmd mode. And so there aren't any more problems other than not having enough time to enter other commands if there are other commands bound to the escape key.
For me I have:
"^[," _history-complete-newer
"^[/" _history-complete-older
"^[OA" history-substring-search-up
"^[OB" history-substring-search-down
"^[[A" up-line-or-history
"^[[B" down-line-or-history
So maybe we want to make sure these are set to non-escape keys, and that may help the issue? Though I still think it may be useful to put a suggestion for KEYTIMEOUT though maybe setting it to 1 is too low? We could maybe just say the default is 40, and if they have problems with keyboard lag they can lower it?
|
There is a very good reason for the KEYTIMEOUT to be set at 500ms, for Consider the following cases:
|
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.