On Sun, 29 Jan 2012, Tim Johnson wrote:

* AK <[email protected]> [120129 16:00]:
On 01/29/2012 07:50 PM, Tim Johnson wrote:
I've been using vim for 12 years now :) and am just getting around to ask this question.

Why is the ^ so slow?
When I press ^, there is a noticeable wait time
before the first non-blank char is selected.

I.E., on every version of vim I have used, I have found this to be so.
0w is way faster, but may not always be the desired result.


For me, it's instantaneous, and always been like that (I'm using
gvim). What does :map ^ show?  -ak
       ^[[24~     <MiddleMouse><Space>
        which was set originally by .vimrc
        Thanks for that tip, removing
        map! ^[[24~  <MiddleMouse>
        from .vimrc seems to have corrected it.
        cheers

For the record, the '^[' portion of '^[[24~' appears to be an escape-sequence-related mapping that wasn't entered properly. The '^[' shouldn't be two characters (carat followed by an opening square bracket). It should be an escape character (which Vim displays as '^['), which can be entered, in insert mode, by typing <ctrl-v> followed by <esc>. <esc>[24~ is the VT100-compatible escape sequence for the <F12> key. So, you could accomplish what that mapping probably intended by doing:

:map! <F12> <MiddleMouse><Space>

--
Best,
Ben

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

Reply via email to