Thursday, 28 January 2010

 

Automatically Enable VIM Syntax Highlighting for a non-standard file extension

:syntax on

"enable perl syntax highlighting for a file with a non-standard extension
:autocmd BufReadPost *.plx set syntax=perl

" some odd useful abbreviations
:cab synh set syntax=html
:cab synp set syntax=php

Labels:


Comments:

Post a Comment

Subscribe to Post Comments [Atom]





<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]