Wednesday, November 23, 2011

VIM highlight file with certain extensions

For example, to force VIM highlight *.wsgi files with Python syntax, add folllowing lines to your .vimrc file.
syntax on
filetype on
au BufNewFile,BufRead *.wsgi set filetype=python

No comments:

Post a Comment