Yakov Lerner wrote:
On 12/19/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
Yakov Lerner wrote:
> I have 'set listchars=tab:»·,trail:·' in my vimrc
> (or equivalent set listchars=tab:\xbb\xb7,trail:\xb7). I also have
> scriptencoding latin1. When I have enc=utf8, this works
> in gvim. But in console vim, when I set encoding to utf8
> in konsole, these »· characters are not see, and columns are
> screwed when 'set list' on on. How do I fix it so that 'set list'
> worked both in utf8 console and latin1 konsole ?
>
> Thanks
> Yakov
I just checked my vimrc, which works even in the UTF-8 konsole. Some of it
might be relevant, see below. I'm snipping irrelevant parts with '"[...]' and
adding '" <===' comments at the end of lines which I think might be
particularly relevant. Notice the Pilcrow mark, a higher-ASCII character,
which is displayed correctly. The whole vimrc is encoded in Latin1.
Another thing which might be relevant is that my Vim is compiled with GTK+2
GUI, which uses UTF-8 whenever possible. Here are the first few lines of my
":version" text:
VIM - Vi IMproved 7.0 (2006 May 7, compiled Dec 5 2006 22:18:11)
Included patches: 1-178
Compiled by [EMAIL PROTECTED]
Huge version with GTK2-GNOME GUI. Features included (+) or not (-):
...and here are selected excerpts from my vimrc:
set nocompatible
scriptencoding latin1 " <===
if has("multi_lang")
if has("unix")
language messages C
else
language messages en
endif
endif
runtime vimrc_example.vim
"[...]
if has("multi_byte")
let g:locale_encoding = &encoding
if &encoding !~? '^u'
if &termencoding == ""
let &termencoding = &encoding
endif
set encoding=utf-8 fileencodings=ucs-bom,utf-8,latin1
endif
setg bomb fileencoding=utf-8
endif
"[...]
set list listchars=tab:\|_,eol:¶ " <===
silent! set listchars+=nbsp:~
"[...]
Best regards,
Tony.