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 said
my problem has solved
thanks!
Nai said
Instead of restarting shell, you could do `source ~/.bashrc` too.
jcisio said
You save me. I’ve just bought a CentOS VPS.