Problems with vim/locale as non-root user on Solaris

Posted by Lyle on Server Fault See other posts from Server Fault or by Lyle
Published on 2010-04-08T17:15:27Z Indexed on 2010/04/08 17:23 UTC
Read the original article Hit count: 346

Filed under:
|
|
|

I do some work on a Solaris 10 machine, and my .vimrc is set up to show unicode characters for tabs and line endings:

set listchars=tab:?\ ,eol:¬

This works out of the box on my OS X machine. On Linux as well as Solaris I get the following error when I start vim:

Error detected while processing /home/lhanson/.vimrc:
line   17:
E474: Invalid argument: listchars=tab:?~V?\ ,eol:¬

I solved this on my Linux box by setting LANG=en_US.utf8 ('locale -a' shows this as being an option).

On Solaris, however, 'locale -a' shows the following:

C
POSIX
iso_8859_1

Setting LANG to C or POSIX yields the same error, and even though iso_8859_1 probably wouldn't work it doesn't successfully change the locale anyway.

As a non-root user, is there any way I can have my unicode characters show up?

© Server Fault or respective owner

Related posts about vim

Related posts about solaris