GVim does not recognize Meta key (Alt) in imap after changing encoding

To edit html files, I have the following three imaps in the file, which I source for the filetype html:

imap <buffer> <M-[> &uuml;
imap <buffer> <M-;> &ouml;
imap <buffer> <M-'> &auml;

This works fine until I change the encoding of the html file with set enc=utf-8. Now, pressing Alt- [for example, gives me Û .

Interestingly, after searching the same file again, it correctly expands the image.

It makes no sense to me. So why this and how can I have a more consistent environment for imap and utf-8.

This happens with gVim 7.1 for Windows.

+5
source share

All Articles