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:
Post a Comment