Solved

colors with vin editor

Posted on 2008-10-30
6
1,714 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Install Predefined Certificate on Ubunto 4 48
Hacked File Timestamps 4 74
Error Message during CentOS 7 Minimal Install 3 58
number in printf 13 32
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

809 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