LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-16-2006, 03:15 AM   #1
hegdeshashi
Member
 
Registered: Dec 2005
Posts: 73
Blog Entries: 3

Rep: Reputation: 15
color in vi editor


Hi,


In my vi editor , the color is always black ( letters) only.
How can I change the color of letters?



regards,
hegdeshashi
 
Old 03-16-2006, 03:38 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Many distributions actually use vim (which has syntax highlighting) instead of vi these days. If invoked as vi, vim operates in a mode which mimics vi - including the monochrome display.

You can invoke vim directly. For example:

vim somefile

If you have the X11 extensions installed (usually called vim-X11), you can also bring up a GUI with the gvim command:

gvim somefile

If these are not installed by your distribution by default, they can usually be installed using your maintenance tool. For example:

yum -y install vim-X11 vim-minimal vim-enhanced vim-common

Last edited by macemoneta; 03-16-2006 at 04:03 AM.
 
Old 03-16-2006, 03:56 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Try the ":syn on" command. It could be that colors are enabled but the feature isn't enabled.

Also, look in /usr/share/vim/ for a vimrc_example.rc file. You can copy this to your home directory and use it as a model for a ~/.vimrc configuration file to include the changes every time you start vim.
 
Old 03-17-2006, 12:00 AM   #4
hegdeshashi
Member
 
Registered: Dec 2005
Posts: 73

Original Poster
Blog Entries: 3

Rep: Reputation: 15
Hi,

I tried with syn on command, but i could not make it.

This /usr/share/vim/ directory is not there in my system .

vim-x11 also not there.

I am using fedora-9.0 ,linux-2.4.20-8 kernel

I any other solution?

regards,
hegdeshashi
 
Old 03-17-2006, 08:21 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Try "locate vimrc". There may be a model configuration file around. There may also be information to be had running through "vimtutor".
 
  


Reply



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
remove color after word search in vi editor dylan912 Linux - Newbie 1 12-10-2004 04:15 AM
[COLOR=red]ENCORE WIRELESS PCI Card 802.11b [/COLOR] enrique145 Linux - Hardware 3 07-07-2004 02:31 PM
color vi text editor in redhat 7.3 (vs 7.2) robeb Linux - Distributions 8 08-31-2003 04:02 AM
Color html editor that loads fast? SharpyWarpy Linux - Software 4 03-16-2003 02:58 PM
vi editor color control in RH8.0 bauld Linux - General 1 02-06-2003 04:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:10 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