Regards,
Sven
Ctrl-[ is equivalent to ESC. I has been
like that since the original vi.
--
Rouben Rostamian
I love "imap <silent> jj <esc>". jj is much faster then to go to ESC.
Ralf
--
kasmra
:wq
> 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/
Has anyone, btw, tried to map esc to Caps Lock?
It's a big, accessible key I seldom if ever use...
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
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
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 skrev:
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
And more generally, add the following line into the Section
"InputDevice" in your /etc/X11/xorg.conf:
Option "XkbOptions" "ctrl:nocaps"
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
You could also use Control-C. The problem with Control-[ is, IME, I
tend to hit Control-P instead (which triggers word completion).