Tuesday, February 1, 2011

Re: Remapping CTRL-I to

On Fri, Jan 28, 2011 at 07:37:17AM +0100, Christophe-Marie Duquesne wrote:
> On Fri, Jan 28, 2011 at 6:52 AM, Ben Schmidt
> <mail_ben_schmidt@yahoo.com.au> wrote:
> > On 28/01/11 3:56 PM, Chris Jones wrote:
> >>
> >> Is it possible to remap CTRL-I to 'Escape' in insert mode without
> >> remapping<Tab>  at the same time?
>
> I think using an external tool such as xmodmap, you could remap <c-i>
> to <esc>, but this solution would affect the whole system.

Originally to compensate for a uselessly small laptop ESC key, I long
ago remapped "Caps Lock" to ESC:

To change CAPS_LOCK to ESCAPE, put into ~/.Xmodmap:
keycode 0x42 = Escape
clear Lock # Disable Caps-Lock

Now I use it on desktops as well, because I've never found a use for
"Caps Lock" [1]. Since ESC is used so much in vim, it seems useful to have
it on a single key. Consistent behaviour across all applications is an
advantage, I find.

YMMV (by a large margin ;-)

Erik

[1] If ever a long shouting heading were needed, there are several vim
ways to convert after input.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment