CentOS by default comes without syntax coloring for Vim. You have to install vim-enhanced with this command:
yum install vim-enhanced
Then, if you’re lazy, open your ~/.bashrc and at the bottom add:
alias vi=vim
Restart your shell!
CentOS by default comes without syntax coloring for Vim. You have to install vim-enhanced with this command:
yum install vim-enhanced
Then, if you’re lazy, open your ~/.bashrc and at the bottom add:
alias vi=vim
Restart your shell!
roe
September 11, 2007 at 7:43 am
my problem has solved
thanks!
Nai
October 11, 2007 at 2:54 pm
Instead of restarting shell, you could do `source ~/.bashrc` too.
jcisio
April 9, 2008 at 12:41 pm
You save me. I’ve just bought a CentOS VPS.
Brett Alton
April 22, 2010 at 3:11 pm
For me it’s:
yum install vim-enhanced
echo “alias vim=vi” >> .bashrc
source .bashrc
But thank you for the tips!