Vim: How to exchange key bindings? (bind '|' on '7' key)
Posted
by
duddle
on Stack Overflow
See other posts from Stack Overflow
or by duddle
Published on 2011-01-07T17:10:52Z
Indexed on
2011/01/07
19:54 UTC
Read the original article
Hit count: 167
Having the German Mac Keyboard Layout, it is a pain to type |
as it is bound to <A-7>
and it is hard for me to reach the Alt key.
Thus, I'd like to do the following remapping (exchanging the binding for |
and 7
):
imap 7 <Bar>
imap <A-7> 7
The first one works, the second one does not. I have already tried all combinations with inor
(no remap) but wasn't successful.
Maybe I don't get the concept of remapping. Or I am missing something else.
© Stack Overflow or respective owner