Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Colorful Python Syntax in vim?

I was wondering how can I get this colorful syntax highlighting in vim on my Mac. I didn't add any libraries on my ubuntu desktop to get the syntax as shown in the image. Is it possible to get this behavior on Mac as well?

python syntax on ubuntu

like image 546
KKa Avatar asked Sep 23 '14 18:09

KKa


1 Answers

In Mac OSX edit your .vimrc file:

vi ~/.vimrc

and add the following:

filetype plugin indent on
syntax on

Save and close (:x) and try opening your python file again.

like image 169
Ewan Avatar answered Oct 16 '22 17:10

Ewan