Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1761
  • Last Modified:

colors with vin editor

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
XK8ER
Asked:
XK8ER
  • 2
  • 2
  • 2
1 Solution
 
BilletkontoretCommented:
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
 
omarfaridCommented:
mostly vim is installed already on centos
0
 
XK8ERAuthor Commented:
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
omarfaridCommented:
run vim not vi
0
 
XK8ERAuthor Commented:
yes but i would like to have vi same as vim.. how can I do that?
0
 
BilletkontoretCommented:
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now