>
> What does ":verbose set timeoutlen" answer?
>
> I recommend someting like the following settings:
>
> if exists('+timeout')
> " should a timeout be applied to keys and mappings?
> " 'timeout' true=yes false=no
> " 'ttimeout' (not used if 'timeout' is true) time out on key codes
> " 'timeoutlen' timeout duration on mappings
> " 'ttimeoutlen': timeout duration on keycodes
> " (use 'timeoutlen') if negative)
> " durations are in milliseconds
> set timeout timeoutlen=5000 ttimeoutlen=250
> " ttimeoutlen should be longer than the hardware cycle but shorter
> than your fastest typing speed
> " timeoutlen should be longer than your slowest typing speed
> endif
>
> Best regards,
> Tony.
Yes, the 'timeout' option is usable with my Vim, yet I'm afraid it doesn't help much here. For the Meta key mapping to work in Insert mode I have to do keymapping like this:
inoremap <expr> <Esc>j InsertModeKeymapping('M-j')
And this will introduce ambiguity to the <Esc> key, Vim get stuck for a while to resolve it whenever the key was pressed under Insert mode. Also, from my understanding, the default status with 'timeout' not set equals 'timeoutlen' being set to infinite time, which is indifferent with, say, a large number.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment