Solved

colors with vin editor

Posted on 2008-10-30
6
1,718 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
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

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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to use question mark (?) in filename with html 25 94
RHEL 6.7 Gnome Desktop on VMware 6 VM 9 108
rsyslog raw message 4 36
Linux 3 33
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). …
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

740 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