Vim syntax coloring on CentOS

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!

3 Comments »

  1. roe said

    my problem has solved
    thanks!

  2. Nai said

    Instead of restarting shell, you could do `source ~/.bashrc` too.

  3. jcisio said

    You save me. I’ve just bought a CentOS VPS.

RSS feed for comments on this post · TrackBack URI

Leave a Comment