Syntax highlighting in vim for python

hidroto picture hidroto · Jan 20, 2011 · Viewed 92.7k times · Source

How do I do I set the syntax highlighting in Vim 7 for python?

I would like to set my own colorschemes, and syntax highlighting for a type of code file.

Answer

mdeous picture mdeous · Jan 20, 2011

The command to enable syntax highlighting in vim is :syntax on, if you want it to be active everytime you launch vim, just add a line containing syntax on in your .vimrc file.