Changing the order does not make a difference.
Meanwhile I noticed that it is not necessary to first change the encoding to latin1. Simply setting encoding to utf-8 (in a file for with encoding is already set to utf-8!) suffices to make the mappings work.

Alt-X to add XML comments (the last line in my _vimrc) does not work either in utf-8 encoded files.

Jan


A.J.Mechelynck wrote:
Jan Weytjens wrote:
Hi Tony,

with the error corrected:
for files for which the encoding is set to utf-8 in my _vimrc the
mappings don't work after the files are opened, but they do work if I
change the encoding to latin1 (at the ex prompt), then back to utf-8.
So, some progress ...

Jan



The function and autocommand must be defined before you change the 'encoding' in your vimrc, so "set enc=utf-8" will trigger them. If it doesn't yet work that way, add "call SpecialMaps()" (without the quotes) in your vimrc.


Best regards,
Tony.




Reply via email to