[Vimoutliner] Mapping the Windows key to Esc?
Charles Burkins
burk at pobox.com
Mon Apr 23 16:28:07 EDT 2007
On Apr 23, 2007, at 2:40 PM, Steve Litt wrote:
> On Monday 23 April 2007 10:28, Charles Burkins wrote:
>> MacOSX, and Linux/BSD. This command:
>> :map! jk <esc>
>>
>> will cause a quick 'jk' to kick you from Insert into Normal mode. It
>> takes a little while to get used to,
>
> I bet it does. I'd imagine that every time you hit a j, it would
> sit there
> waiting for your next keystroke. How long did it take you to get
> used to
> that?
If you don't like my 'jk' hack, you could try the 'CTRL-[' key combo.
:help i_CTRL-[
But really, Vim doesn't seem to be sitting and waiting for my next
keystroke. I use my 'j' key absolutely normally. I'm a reasonably
fast touch typist, and I never notice any delay. I just tried to type
several words starting with 'j' as fast as I could. I didn't notice
any delay. Moving Down? I don't notice any delay. Typing 'jk' gets a
delay, for sure, but I just don't do that very often.
Oh, wait! I just found one other place with a noticeable delay. If I
hold the 'j' key to go down (something I don't happen to do), there
is a half second delay after the first line (but not after any
others), so if you move down that way, it might slow you down a little.
>
> Why didn't you make it jf? Seems to me that's an easier sequence to
> type
> because it uses two different hands.
Perhaps, but in normal mode, 'jf' moves down and starts a find in the
line, whereas 'jk' moves down and up, essentially a nop. I need that
because I find myself trying to switch to normal mode quite often
when I'm already in normal mode.
>
> I've become a Vim partisan, and indeed I'm now writing a book on
> Vim, and the
> one and only objection I have to Vim is that Esc key way out in the
> Pacific
> Northwest.
>
-Chuck
PS: What's the book about? ( I mean besides Vim ).
More information about the VimOutliner
mailing list