You are not logged in.

#1 2004-10-02 02:08:33

Takaitra
Member
From: Minnesota
Registered: 2004-05-24
Posts: 10

Color in Vim

I've been writing some PHP files on my arch box using vim and I realized there was no color syntax highlighting. After googling, searching the forum, and fiddling with some configuration files, I still haven't seen any color in my vim. When I enable syntax highlighting by adding "syntax on" to my ~/.vimrc, the PHP file gains some underlining and bold text. That's a step up from nothing, but not color. My /usr/share/vim/syntax files exist and they must be noticed by vim since it is doing a sort of b&w highlighting. I'm using gnome-terminal which supports color. When I "ls" in Arch, I get a colorful listing. My bash prompt is in color. So why isn't color working in vim?!

Any suggestions will be greatly appreciated.

Offline

#2 2004-10-02 02:36:03

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Color in Vim

Take a look at :help xterm-color from within vim.

If that doesn't do it, try setting the TERM shell variable to let programs know that colour is available. Here's mine:

TERM=xterm-xfree86, but I use xterm. Take a look at this page: http://wiki.archlinux.org/index.php/Why … rminals%3F for some more terminal related stuff.

Dusty

Offline

#3 2004-10-02 02:55:10

Takaitra
Member
From: Minnesota
Registered: 2004-05-24
Posts: 10

Re: Color in Vim

Setting my TERM shell variable worked perfectly, thank you.

Offline

Board footer

Powered by FluxBB