[Vimoutliner] Mapping the Windows key to Esc?
Steve Litt
slitt at troubleshooters.com
Mon Apr 23 18:19:17 EDT 2007
On Monday 23 April 2007 16:28, Charles Burkins wrote:
> 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-[
That's worse than Esc. Easier than Ctrl+[ would be Ctrl+C, but that's still of
equal or more difficulty than Esc.
>
> 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.
You can fix that by doing a map in insert mode only. I don't remember exactly
how to do that, but probably h map will show you how. Then jk will be special
only in insert mode, and you can immediately j down.
>
> > 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.
Good point.
This is why I asked this question -- so I could get feedback from people who
deal with this on an everyday basis.
Thanks so much.
SteveT
More information about the VimOutliner
mailing list