You are not logged in.

#1 2004-04-01 11:50:41

Bjørn
Member
From: The Netherlands
Registered: 2004-03-18
Posts: 139
Website

vim colors in xterm

I really like coding in vim, but with the current vim package in Arch Linux, the colors don't seem to work in all cases. In a standard xterm, the colors in the directory listings are working fine, but when I start vim, it only uses bold and underline and no color whatsoever.

I tried some different terminals, and gnome-terminal has the same problem. But the colors were working fine in aterm and Eterm! Now I don't really like the last two because they are slower, uglier, have all kinds of features I don't use, and the text is flickering when I move the window.

I used to use Slackware and vim colors were working fine in xterm there. Would anybody know what could be wrong with my setup?


http://themanaworld.org/
A Free Real-time Massively Multiplayer Online RPG in development.

Offline

#2 2004-04-01 12:14:13

contrasutra
Member
From: New Jersey
Registered: 2003-07-26
Posts: 507

Re: vim colors in xterm

add this to your ~/.bashrc:

export TERM=xterm-color

"Contrary to popular belief, penguins are not the salvation of modern technology.  Neither do they throw parties for the urban proletariat."

Offline

#3 2004-04-01 16:17:09

Bjørn
Member
From: The Netherlands
Registered: 2004-03-18
Posts: 139
Website

Re: vim colors in xterm

Ah, thanks a lot, works like magic!

It would still be nice to know why it works and how I could have found out about it without asking, though. smile


http://themanaworld.org/
A Free Real-time Massively Multiplayer Online RPG in development.

Offline

#4 2004-04-01 16:22:00

scottro
Member
From: NYC
Registered: 2002-10-11
Posts: 466
Website

Re: vim colors in xterm

Heh, it's one of those things you pick up somewhere.  Seriously, I usually use either rxvt or atem.  Xterm doesn't do color, I don't know why or how I found out about it.  I probably went to deja (now google.groups, I think, I still type deja) and did a search or something.

There are things you pick up somewhere--for example (I was complaining about this to a friend recently, when we were talking about poor documentation) most folks know that kill -1 or killall -SIGHUP restarts most processes (though not all). However, the Linux and FreeBSD man pages don't mention this, they simply say it terminates a process--OpenBSD, which often has better (imho) man pages do mention in passing that it will cause a process to reread its config file (in the example they mention, inetd).

Your attitude is admirable.  It's probably in some document somewhere, you could try doing apropos colors--which, in FreeBSD (where I'm writing this) gives about 15 different possible man pages.

Offline

#5 2004-04-01 17:45:13

Bjørn
Member
From: The Netherlands
Registered: 2004-03-18
Posts: 139
Website

Re: vim colors in xterm

apropos... another new command learned. smile It comes up with about 81 manpages, none of them seems very useful though.

Before asking here I tried reading the man pages of both xterm and vim, and then parts of the vim manual where I came along the color test and whatnot. I just couldn't find what could be related to this color problem.


http://themanaworld.org/
A Free Real-time Massively Multiplayer Online RPG in development.

Offline

#6 2004-04-01 23:55:19

scottro
Member
From: NYC
Registered: 2002-10-11
Posts: 466
Website

Re: vim colors in xterm

Heh, if I could remember exactly how I learned it, I'd help. I ~think~ that I did what I mentioned earlier, something like a deja search with vim, color xterm or something like that.

Don't worry--as I said, you have an excellent attitude, so you'll be learning lots of things about lots of things.

Offline

Board footer

Powered by FluxBB