Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-10-2006, 02:50 AM   #1
Registered: Jan 2006
Distribution: RedHat linux 9
Posts: 31

Rep: Reputation: 15
about set vi's color

every time when i login in my linux,i must input
then when i open the vi,it will show colors

i wnat to know how to let the system input the shell "TERM=xterm-color" automationly when i login in the linux?
Old 02-10-2006, 06:14 AM   #2
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
either put

export TERM=xterm-color

in $HOME/.bashrc or in (as root) /etc/profile. if $HOME/.bashrc doesn't exist you can create it and put that in there like this:

cat > $HOME/.bashrc << EOF
export TERM=xterm-color


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Set color to RXVT bluesheet Linux - General 4 09-01-2007 06:19 PM
Unable to set syntax color on for VIM 6.3 that came with Fedora 4 d2army Linux - Newbie 3 02-16-2006 01:52 PM
Vi's oddities alienDog Linux - Software 4 08-08-2005 08:16 PM
[bash] changing the color set MD3 Linux - Software 2 04-27-2005 01:38 PM
Cant set color or promt in bash outsider Linux - General 2 10-15-2001 01:26 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration