How to enable syntax colouring in VIM

1 reply [Last post]
angel's picture
angel
User offline. Last seen 2 years 26 weeks ago. Offline
Joined: 08/22/2009

I was coding on my Ubuntu Server.But i dont want to use any built in text editors with syntax colouring like Gedit, I prefer Vim because i am used to.Is there any way to permanently enable syntax colouring. :syntax on do it for that particular session but i want it permanent.


rajesh's picture
rajesh
User offline. Last seen 23 hours 57 min ago. Offline
Joined: 08/17/2009
edit vimrc file

Locate vimrc file in your vim installation.Edit it to uncomment syntax on line and save the shnages