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
Avoiding timeoutlen for shortcuts #212
Comments
Commands like 'dd' are operators where the first 'd' represents a command and the second 'd' is the parameter. Timeoutlen does not apply between and operator and it's parameters. 'yow' on the other hand is a key binding, so timeoutlen applies. You can use |
Thanks @systemmonkey42. I actually ran into this issue because my |
Not really no. A complete rewrite of vim unimpaired where Incidentally I have timeout turn off permanently. Why do you find you need it? |
Fair enough. Thanks again for that information. I'll just increase I use this setting in combination with |
Ahhh… I remember now why I like |
Ah, the old The problem with Esc hanging around when leaving insert mode, or while typing a command is the old "mappings starting with escape" (newbie?) mistake. Eg, The command:
causes vim to treat "escape" as the beginning of a key mapping (which it is). Any time you press escape, it must wait On the other hand; Essentially, If you, (or a plugin you've installed) has created a mapping starting with an If you create a Terminal code (I use unused function keys because vim understands up to Once you have NO mappings starting with Esc, pressing Esc on its own is no longer subject to Try EDIT: A bunch of |
For posterity, this is what I use: setglobal timeoutlen=1200
setglobal ttimeoutlen=50 One second is a tad too tight for me. Bump to 1.2 seconds is adequate. Your mileage may vary. The timeout for escape can be set separately with |
Huh, I had never heard of that before. Thanks @systemmonkey42! I had a look at |
You will need to check the
With this default configuration, pressing escape at any time triggers the 1000ms As @tpope mentioned, consider using
With Eg, press Create a mapping starting with Esc...
(The "exe" wrapper allows vim to expand Now press |
@systemmonkey42 sorry I should have been clearer. I indeed do have those settings you recommend.
But I still experience the 1000 ms delay when pressing Esc in command/insert mode. I don't think I have any mappings starting with Esc though, at least according to |
Vanilla vim keybindings involving multiple keys (e.g.
dd
) don't seem to time out. I can press the first keyd
, wait several seconds, then press the secondd
.However, it seems like the vim-unimpaired shortcuts (e.g.
yow
) respecttimeoutlen
. That is, I can't wait indefinitely between keys, but instead have to press each subsequent key withintimeoutlen
. Is that the expected behaviour? Is there or should there a way to avoid this timeout?The text was updated successfully, but these errors were encountered: