Jun 132010
 

Hi there,

if you want to have the python syntax highlighting for wsgi-files, you just have to edit this vim file:

sudo vim /usr/share/vim/vim72/filetype.vim

After opening this file search for the keyword python. You can search with vim via the „/“-command. Type „:/ python“ and search the line:

“ Python
au BufNewFile,BufRead *.py,*.pyw        setf python

You just have to add ,*.wsgi after pyw. It should look like this:

“ Python
au BufNewFile,BufRead *.py,*.pyw,*.wsgi        setf python

Now you can open a wsgi-File and the syntax-highlighting should be enabled.

Have fun!

Sorry, the comment form is closed at this time.