Jan Weytjens wrote:
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
'encoding' (how Vim represents characters in memory) is not "for a file", it is a global setting. So is 'fileencodings' (with s -- the heuristic) but not 'fileencoding' (without s -- the file's charset), which is buffer-local with, like all local options, a global default.

Treat the Alt-X (<A-X> or <M-X> in the mappings) the same way as the ² and µ keystrokes (i.e. put them into the function and all that). Similarly for any other Alt-something keypresses, or indeed for any keystroke which doesn't work when changing to UTF-8. Then what makes the ones work will (I suppose) make the other work as well.



Best regards,
Tony.

Reply via email to