How can I change vim mappings for accented characters -
i trying change vim mappings (french) accentuated characters.
à
(ascii 133) alt+a
À
(ascii 183) alt+shift+a
é
(ascii 130) alt+e
É
(ascii 144) alt+shift+e
i happy remap existing maps alt+i ==> é
(why that?)
how can mappings work ?
mapping works theses chars, , question alt key, may not work when terminal prefixes character esc character. type :help map-alt-keys
more informations on that.
i tried in xterm , theses mapping worked:
:imap <a-a> à :imap <a-a> À :imap <a-e> é :imap <a-e> É
and also, changing default mapping another, use "remap" instead of map :
:iremap <a-i> whatever
edit : see alt key shortcuts not working on gnome terminal vim
Comments
Post a Comment