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!