You are not logged in.
Pages: 1
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
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
Setting my TERM shell variable worked perfectly, thank you.
Offline
Pages: 1