Solved

colors with vin editor

Posted on 2008-10-30
6
1,733 Views
Last Modified: 2013-12-15
hello there
i am using centos v5.2 and I would like to know how can I see colors while using the vi editor from the shell
the text colors used to look more or less like this
http://www.robherbst.com/blog/wp-content/uploads/2006/12/vimcolorscheme.jpg
http://www.igormud.org/g_client_files/image003.gif
but now the whole text looks like this http://molly.com/articles/webthoughts/2000-10-texteditors-fig1.gif
0
Comment
Question by:XK8ER
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 2

Expert Comment

by:Billetkontoret
ID: 22848851
You can install the vim-editor instead. It can be done with the command:

yum install vim-minimal.i386.

You may need to run yum install vim-common.i386 also.

After that you can run the vi command as usual and it will run vim in stead (which is an enhanced version of vi)

Remember to change i386 if you are using another arch.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 22849818
mostly vim is installed already on centos
0
 
LVL 1

Author Comment

by:XK8ER
ID: 22855029
yes its already installed.. when I type
vi /etc/bashrc
I see the editor but it doesnt show colors.. its just plain white.. how can I change that?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 40

Expert Comment

by:omarfarid
ID: 22856183
run vim not vi
0
 
LVL 1

Author Comment

by:XK8ER
ID: 22857358
yes but i would like to have vi same as vim.. how can I do that?
0
 
LVL 2

Accepted Solution

by:
Billetkontoret earned 500 total points
ID: 22858275
Then you need to find your vi executable file and rename it.

Type: updatedb <enter>
locate vi <enter>

Now you need to rename the file:
mv /usr/bin/vi /usr/bin/vi.org (if the locate above shows that it is located in the dir /usr/bin)

Then run the command: alias vi=vim <enter>

And not try to type vi at the command-prompt.

0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question