Context:
set encoding=utf-8
If I type:
:imap <M-h> foo
then I type
:imap <M-h>
I get:
i è foo
and, as result, both <M-h>
and è
, if pressed in insert mode, insert foo
I tested this behavior both on Ubuntu 12.04 and Windows XP
Linking to this question, seems that GVim treats the Meta key adding 0x80
to the keycode.
Reading the previous linked answer and googleing I thought it might be only a matter for terminal Vim, not for GVim.
Any suggestion?