Monday, September 27, 2010

Re: mapping g to ctrl-f -> timeout

* lylez <lyle.ziegelmiller@gmail.com> [2010-09-28 04:03]:
> I map g to ctrl-f to make paging easier.

like this?: :map g <c-f> (just checking)

> This caused a 1-second delay to occur when paging forward in 7.1. It
> went away in 7.2, but now it is back in 7.3. I'm using the version
> for MS Windows. Is there any way to get rid of the 1-second delay?

quite a few commands start off with a 'g' (see ":help g").
so when vim receives a 'g' then it waits for a bit
to see whether any more characters come after that.
only when there are no further characters after a pause
then it will execute the command mapped to 'g' - feature!

i frequently use these 'g' commands:
g? ga ge gf gg gJ gq - check them out!

you can probably set a shorter delay by adjusting
the options timeout, ttimeout, and ttimeoutlen.

Sven

--
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

No comments: