[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vim & xterm problems
Christoph Singer wrote:
> I downloaded a new version of vim that promises to support UTF-8 (
> version 6.0au BETA), but still have the problem, that some characters
> are displayed properly but some are not.
> My system is a SuSE 7.2, Kernel 2.4.4, XFree86 4.1.0, KDE 2.2; the LANG
> environment variable is set to "de_DE.UTF-8".
> Both xterm and the KDE Konsole properly display UTF-8 characters (I
> tried German and Russian characters in file names), less, cat and more
> properly display German and Russian UTF-8 encoded text files. I can type
> both in German and Russian in xterm and Konsole using the KDE keyboard
> switching utility.
I assume you are using Vim in a terminal window. Did you try if the GUI
(gvim) displays the text correctly?
> But vim 6.0au does not display some characters properly: e.g. German
> lowercase umlauts are displayed properly, uppercase umlauts and Ã? are
> not. The string
> ä-�-ö-�-ü-�-�
> is displayed in vim as
> ä- ~D-ö- ~V-ü- ~\- ~_?
>
> and the Russian string
> Ñ?Ñ?вапÑ?олджÑ?
> (you guess, it's the second row on a Russian keyboard ;-)
> is displayed in vim as
> ~D ~K вап ~@олдж ~M
This works fine for me (in xterm 158). It looks like for you a second
byte in the range 0x80 - 0x9f is causing trouble. I can't guess what
could be different in your enviroment that causes this.
> that is, 7 characters are displayed in the right way an 4 are not.
> Internally, the vim seems to handle the characters correctly: when I
> save such a document and view it with less or cat, all characters are as
> they should be. It's just the display in vim that is not right, both in
> xterm and KDE Konsole.
> Any hints? Did I miss some needed configuration?
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)?
> In xterm and the KDE Konsole, I still have some problems with the
> Backspace and arrow keys. When trying to delete a character or moving
> backwards and forwards in a string on the command line with the arrow
> keys, obviously only one byte is deleted or moved and not the whole
> character (if it is a non-ascii character). This is very confusing and
> often produces errors when working on the command line - how this can be
> fixed?
I assume you are not talking about Vim here.
--
hundred-and-one symptoms of being an internet addict:
192. Your boss asks you to "go fer" coffee and you come up with 235 FTP sites.
/// Bram Moolenaar -- Bram@xxxxxxxxxxxxx -- http://www.moolenaar.net \\\
((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim )))
\\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/