[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vim & xterm problems



Bram Moolenaar wrote:
>Christoph Singer wrote:

But vim 6.0au does not display some characters properly: e.g. German lowercase umlauts are displayed properly, uppercase umlauts and ß are not.
I would expect either none of the non-ASCII characters to work or all of
them.  Strange.  Did you check the options 'encoding' (should be
"utf-8") and 'termencoding' (should be empty)?


It works now!!! Here is what I did:

1. At first, when the stange behaviour appeared that some characters where displayed and others not, vim was compiled without any additional configuration options. (no --enable-multibyte or so...). Gvim showed two latin-1 characters for 1 non-ascii utf8 character, then.

2. I recompiled with --enable-multibyte
and in my .vimrc I set encoding=utf8 according to your posting.
Things looked even stranger - now for every expected non-ascii character 4 characters were displayed! I guess that vim treated every two-byte character as two latin-1 characters and converted each of them to utf-8...
when vim started up, it said "invalid option encoding=utf-8".


3. I deleted encoding=utf-8 from my .vimrc and decided to try not to leave

"termencoding" empty but to set it to "utf-8". And now, it works perfectly!

In summary what I did:

- compiled with --enable-multibyte
- added "set termencoding=utf-8" to .vimrc

Thanks for this great utf8-editor! (I will probably not need yudit any longer...) And thanks to all who helped to bring unicode support to Linux!!

Christoph





-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/