Tuesday, June 30, 2009

Vim syntax highlighting on Ubuntu

To get vim syntax highlighting:

First, make sure you have vim installed in addition to plain old vi.

sudo apt-get install vim

Then, create a vimrc dot file.

vim ~/.vimrc

In that file, add the following:

:syntax on

Thats it! Next time you edit a file in vim, you should have syntax highlighting.

No comments: