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
add following line
That is it!