Yakov Lerner wrote:
On 7/14/06, James Vega <[EMAIL PROTECTED]> wrote:
On Fri, Jul 14, 2006 at 02:29:49AM +0300, Yakov Lerner wrote:
> I always had this line in my vimrc:
>       exe "set listchars=tab:\xbb\xb7,trail:\xb7"
> (It is equivalent to set listchars=tab:»·,trail:·)
> Suddenly his line stopped working. (I didn't change it)
> It assigns now empty value to listchars:
>        set listchars?
>        listchars=tab:,trail:
>
> Command L=line  :set listchars=tab:»·,trail:·
> stopped to work, too.
> It prints E474: Invalid argument: listchars=tab:»·,trail:·
>
> What can be causing this ?

It sounds like you're running Vim in an environment that doesn't
understand those characters.  You'll probably want to check what
'encoding' is.

Encoding is latin1.

Yakov




This does sound like using Vim with UTF-8 'encoding' in the one case, some 8-bit 'encoding' in the other case. Or vim 7 in one case and vim 6 or earlier in the other. Check it: place the cursor in your vimrc, then

        :echo version
        :verbose set encoding? fileencoding?

If 'encoding' and 'fileencoding' are not the same (and the latter isn't empty) you also need a "scriptencoding" statement (q.v.) higher in the script (with the value of 'fileencoding' as argument).

If you change both 'encoding' and 'listchars' in your vimrc, it may matter which setting change comes before the other.


Best regards,
Tony.

Reply via email to