How to enable syntax colouring in vim using Terminal

terminal

I am new to mac

I want to change the look of my Terminal.app window so that it look like Ubuntu's terminal

Terminal of mac

Ubuntu Terminal

How can I configure my Mac terminal so that code in vim look colourful?
I.e. such that data type, special functions, header files have a different colour.

Best Answer

Run :syntax on inside vim or add syntax on to your .vimrc.