How to enable vim syntax highlighting in Ubuntu

  • The source of vi/vim command is vim-tiny package which does not support syntax highlighting. Install vim:
             sudo apt-get install vim
  • Then open /etc/vim/vimrc and uncomment syntax on
  •  Replace
          "syntax on

                         With

                        syntax on

Content Courtesy: http://www.ubuntuguide.org
Content License:http://www.gnu.org/copyleft/fdl.htm

 

No votes yet