Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

escape out of reach

0 views
Skip to first unread message

Sven7

unread,
Sep 3, 2009, 5:06:31 PM9/3/09
to
In vim (well, vim 7.2 for windows), the escape key
is used a lot but is a bit out of reach if you
want to keep your hands on the central keyboard.
At least for me. I'd be interested in hearing the
group's view on this. Any interesting mappings to
other keys? Tips for making fingers longer?

Regards,
Sven

rouben

unread,
Sep 4, 2009, 12:18:33 AM9/4/09
to

Ctrl-[ is equivalent to ESC. I has been
like that since the original vi.

--
Rouben Rostamian

RalfB

unread,
Sep 4, 2009, 1:44:27 AM9/4/09
to
Hello,

I love "imap <silent> jj <esc>". jj is much faster then to go to ESC.

Ralf

SM

unread,
Sep 4, 2009, 2:18:45 AM9/4/09
to
2009-09-04, RalfB skribis:

> Hello,
>
> I love "imap <silent> jj <esc>". jj is much faster then to go to ESC.
>
QFT. Although my version is "inoremap jj <esc>".

--
kasmra
:wq

Florian Rehnisch

unread,
Sep 8, 2009, 6:54:49 AM9/8/09
to
o Sven7 <Sven@7.x>:

> group's view on this. Any interesting mappings to
> other keys? Tips for making fingers longer?

I use this:

inoremap jff <c-k> " entering digraphs
inoremap <c-k> <esc> " remap esc to ^K
--
flori
Komfortables Web2News-Gateway http://www.newsoffice.de/
Vim-Hilfe auf Deutsch http://www.florianrehnisch.de/vimhelp/

Sven7

unread,
Sep 9, 2009, 3:10:37 PM9/9/09
to
Thanks for your feedback. Ctrl-[ is pretty useless
for me as I use a Scandinavian layout. jj & Ctrl-K
makes more sense.

Has anyone, btw, tried to map esc to Caps Lock?
It's a big, accessible key I seldom if ever use...

Mikolaj Machowski

unread,
Sep 9, 2009, 4:39:21 PM9/9/09
to
Sven7 scripsit:

Not possible in Vim. Only on system level.

m.
--
LaTeX + Vim = http://vim-latex.sourceforge.net/
Vim Universal Templates: http://vim.sf.net/script.php?script_id=1078
CLEWN - http://clewn.sf.net

RS Wood

unread,
Sep 9, 2009, 8:44:30 AM9/9/09
to
In article <2009-09-05$15.5...@x.vimhelp.de.vu>, Florian Rehnisch wrote:
> o Sven7 <Sven@7.x>:
>
>> group's view on this. Any interesting mappings to
>> other keys? Tips for making fingers longer?
>
> I use this:
>
> inoremap jff <c-k> " entering digraphs
> inoremap <c-k> <esc> " remap esc to ^K

I bought a new keyboard, to deal with the problem. The Happy Hacker
keyboard has the escape key within reach, and it's very comfortable.
Just a thought.
--
http://www.therandymon.com

SM

unread,
Sep 14, 2009, 1:47:48 AM9/14/09
to
2009-09-09, Sven7 skribis:

>
> Has anyone, btw, tried to map esc to Caps Lock?
> It's a big, accessible key I seldom if ever use...

Had a go at that once. I find mapping Caps Lock as another Ctrl key far
more useful. Even (and especially) when vimming.

--
kasmra
:wq

Sven7

unread,
Sep 14, 2009, 6:12:34 PM9/14/09
to
So how did you succeed in mapping Caps Lock to
something else? On what OS?

SM skrev:

SM

unread,
Sep 15, 2009, 6:45:03 AM9/15/09
to
2009-09-14, Sven7 skribis:

> So how did you succeed in mapping Caps Lock to
> something else? On what OS?

My OS is Debian Squeeze. In Gnome:

System -> Preferences -> Keyboard -> Layouts -> Layout options... ->
Ctrl key position -> Make CapsLock an additional Ctrl

> SM skrev:
>> 2009-09-09, Sven7 skribis:
>>> Has anyone, btw, tried to map esc to Caps Lock?
>>> It's a big, accessible key I seldom if ever use...
>>
>> Had a go at that once. I find mapping Caps Lock as another Ctrl key far
>> more useful. Even (and especially) when vimming.
>>


--
kasmra
:wq

SM

unread,
Sep 15, 2009, 7:07:05 AM9/15/09
to
2009-09-15, SM skribis:

> 2009-09-14, Sven7 skribis:
>> So how did you succeed in mapping Caps Lock to
>> something else? On what OS?
>
> My OS is Debian Squeeze. In Gnome:
>
> System -> Preferences -> Keyboard -> Layouts -> Layout options... ->
> Ctrl key position -> Make CapsLock an additional Ctrl

And more generally, add the following line into the Section
"InputDevice" in your /etc/X11/xorg.conf:

Option "XkbOptions" "ctrl:nocaps"

Sven7

unread,
Sep 19, 2009, 11:01:16 AM9/19/09
to
Thanks, I'll try that on Ubuntu...

Michael Paoli

unread,
Sep 28, 2009, 11:42:32 PM9/28/09
to

Use:
Control-[
That will generally work the same (typically generates an escape for
most sane keyboard and operating system configurations), and is
also often handy in that the Control and [ keys tend to jump around
less in position from keyboard to keyboard compared to the escape
key.

Same can be applied in the case of backspace - use Control-H

Arif Khokar

unread,
Oct 5, 2009, 6:28:00 PM10/5/09
to

You could also use Control-C. The problem with Control-[ is, IME, I
tend to hit Control-P instead (which triggers word completion).

0 new messages