Vi Color

Default vi that comes with fresh Centos 5 install may not have color support. Adding color support is easy.
Install necessary libraries.

yum install vim-common vim-enhanced

Add an alias to use vim for vi command.
Open bash file

vi ~/.bashrc

add following line

alias vi=vim

restart shell

source ~/.bashrc

That is it!

Leave a Reply

Your email address will not be published. Required fields are marked *