You are not logged in.

#1 2014-09-24 23:25:49

meschael
Member
Registered: 2014-06-22
Posts: 26

Vim Error E474 Invalid argument listchars (encoding or locale?)

I am getting E474: Invalid argument launching vim and have been trying to solve it using locales via the wiki,  I have the following .vimrc:

scriptencoding utf-8
set encoding=utf-8
syntax enable
colorscheme badwolf
set tabstop=4
set expandtab
set number
set showcmd
set list
set listchars=tab:›,trail:-,extends:>,precedes:<,eol:¬

and have exported LANG and LANGUAGE after discovering LANG was set to C:

[bb@yte ~]$ export LANG="en_US.UTF-8"
[bb@yte ~]$ export LANGUAGE="en_US.UTF-8"

I checked /etc/locale.gen which has en_US.UTF-8 UTF-8  uncommented.  And during instalation I folowed the procedures layed out in the beginners guide on the arch wiki.  Did I somehow screw up my locale? Or is there something I am missing?

I hope someone who uses vim here can help me.

Last edited by meschael (2014-09-24 23:52:11)

Offline

#2 2014-09-24 23:30:24

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Vim Error E474 Invalid argument listchars (encoding or locale?)

You shouldn't need to export those vars if your locale is set up correctly: https://wiki.archlinux.org/index.php/Locale


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-09-24 23:47:39

meschael
Member
Registered: 2014-06-22
Posts: 26

Re: Vim Error E474 Invalid argument listchars (encoding or locale?)

Ok I have redone all of that and now I get

[bb@yte ~]$ locale
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=

but still have the same problem, maybe its unrelated to my locale.  Any other ideas?

Offline

#4 2014-09-24 23:52:43

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Vim Error E474 Invalid argument listchars (encoding or locale?)

Easy enough to test: launch vim with no .rc and then add your lines back one by one until you identify the dud...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2014-09-25 00:09:00

meschael
Member
Registered: 2014-06-22
Posts: 26

Re: Vim Error E474 Invalid argument listchars (encoding or locale?)

the dud is the last line set listchars=tab:›,trail:-,extends:>,precedes:<,eol:¬ , has anyone tryed to use unicode in listchars before?

Please delete this thread if you may, I belive my question is not related to arch or its configuration but to vim.

Last edited by meschael (2014-09-25 00:12:19)

Offline

#6 2014-09-25 00:16:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Vim Error E474 Invalid argument listchars (encoding or locale?)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2014-09-25 00:25:58

meschael
Member
Registered: 2014-06-22
Posts: 26

Re: Vim Error E474 Invalid argument listchars (encoding or locale?)

I found http://www.networketiquette.net/interne … netiquette

Read it sometime and stop being so cocky, seriously im done.

Offline

#8 2014-09-25 00:32:32

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Vim Error E474 Invalid argument listchars (encoding or locale?)

Cocky? You ask for help, so I do my best. Then you decide you can't be bothered to share what you have learned, instead you abuse me.

Seriously?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2014-09-25 02:04:10

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,718
Website

Re: Vim Error E474 Invalid argument listchars (encoding or locale?)

@jasonwryan,

I was reading this thread; then when I got to the last two posts ... I could not stop laughing tongue
No matter how hard you try, sometimes, you just need to walk away and not think too much about what just happened smile

R.

Offline

#10 2014-09-25 02:17:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Vim Error E474 Invalid argument listchars (encoding or locale?)

I'm clearly going soft. A while back, I would have just swung the banhammer...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB