I use a Belgian azerty keyboard and use nmap in _vimrc (vim 7.0 on Windows 2000) to map the ² and µ keys to ~ (² is more or less in the same place on the keyboard as the tilde on an american qwerty and one can think of µ as standing for Majuscule).

These mappings don't work in files for which the encoding and fileencoding are set to utf-8 (.xsd files, ...). It does not make a difference what the encoding and fileencoding of _vimrc are (latin-1 or utf-8). Changing the encoding to latin-1 at the ex prompt makes it work (but makes special characters unreadable). Changing the encoding back to utf-8 at the ex prompt makes the mapping stop working. Curiously, when the mapping is done at the ex prompt (with the encoding set to utf-8), then it does work.

Also, some scripts don't work when the encoding is utf-8 (e.g., EnhancedCommentify-2.2 with Alt-X).

Is there a way to make them work in utf-8 encoded files?

Jan

Reply via email to