[Vimoutliner] Mapping the Windows key to Esc?
Steve Litt
slitt at troubleshooters.com
Mon Apr 23 14:40:42 EDT 2007
On Monday 23 April 2007 10:28, Charles Burkins wrote:
> On Apr 22, 2007, at 6:01 PM, Steve Litt wrote:
> > Hi all,
> >
> > Is there any way within Vim to map the Windows key to Esc? For
> > years I've
> > sought a faster way of returning from insert mode to edit mode, but
> > neither
> > Ctrl+C nor a comma comma command was really faster. It's possible
> > that the
> > Windows key might be faster -- it's closer to home position than Esc.
>
> I can't answer your question exactly, but I can give you a quick vim-
> only hack that has served the same purpose, and works on Win32,
>
> 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?
Why didn't you make it jf? Seems to me that's an easier sequence to type
because it uses two different hands.
> but it increased my efficiency
> so much that I can't work on a vim without it.
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.
Thanks
SteveT
More information about the VimOutliner
mailing list