LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-24-2005, 05:10 PM   #1
pfaendtner
Member
 
Registered: Nov 2003
Posts: 57

Rep: Reputation: 15
what controls colors in vi/vim?


Hi, I have two supposedly "identical" RHEL boxes. One I use for my desktop and another is a workstation. They both have RHEL3 and are similarily updated.

On my desktop machine vi/vim (I'm not sure which I'm using, I use the command vi) color-codes C, tex, .csh files when I edit them. On my workstation boxes vi (or vim) does no such thing.

I'm assuming I merely need to copy over some config files from my desktop to the workstations (I am root on these boxes) but I have no idea what to copy.

Please help!
 
Old 03-24-2005, 05:37 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
try copy your ~/.vimrc file or create one with :
Code:
set nocompatible
syntax on
 
Old 03-24-2005, 05:42 PM   #3
pfaendtner
Member
 
Registered: Nov 2003
Posts: 57

Original Poster
Rep: Reputation: 15
this succeded in giving me bold/underlines but no colors...
 
Old 03-24-2005, 05:51 PM   #4
pfaendtner
Member
 
Registered: Nov 2003
Posts: 57

Original Poster
Rep: Reputation: 15
Found it:

My xterm wasn't supporting color for some reason. Need to add

setenv TERM xterm-color

to .login or something like that...
 
  


Reply


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
how to get colors in emacs and vim pranith Linux - Newbie 1 02-11-2005 12:35 AM
regarding colors in vim and emacs pranith Linux - Newbie 0 02-10-2005 03:10 AM
vim colors Erik Thorsson Debian 1 02-09-2005 09:38 AM
VIM 6.3.13 Colors not displaying correctly schurt Fedora 0 07-22-2004 05:08 PM
vim suddenly changed colors??? spyghost Linux - Software 5 08-27-2003 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:21 AM.

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