Solved

colors with vin editor

Posted on 2008-10-30
6
1,708 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
  • 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

786 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