To edit html files, I have the following three imaps in the file, which I source for the filetype html:
imap <buffer> <M-[> ü
imap <buffer> <M-;> ö
imap <buffer> <M-'> ä
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.
source
share