On 02/19/2013 08:33 AM, Eric Weir wrote: > I was also able to remap <esc> to jj, which some have said > can't be done. It is a little tricky, though. You have to do > the jj real fast. [Is there a setting I could change that > would get jj recognized as a single command by allowing for a > slightly longer delay between the letters?]
Take a look at the 'timeoutlen' and 'ttimeoutlen' options: :help 'timeoutlen' :help 'ttimeoutlen' I have mine set as follows: :set timeoutlen=3000 :set ttimeoutlen=50 This gives me 3 seconds (3000 milliseconds) to type the next key in a mapping, while having to wait only 50 milliseconds for Vim to recognize multi-byte key codes. For example, on many terminals, the code for the <Escape> key is a prefix of the codes for function keys, arrow keys, etc., and Vim has to wait some amount of time to be sure that it's really an <Escape> and not just part of a multi-byte keycode. Michael Henry -- -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
