August 15, 2007

PyGTK bindings & vim syntax highlighting

Python bindings as implemented the PyGTK way use files with extensions ”.defs” and ”.override”. By default in vim these will not have syntax highlighting.

Create ~/.vim if necessary, and in ~/.vim/filetype.vim put:

if exists("did_load_filetypes")
augroup filetypedetect
  au! BufRead,BufNewFile *.override             setfiletype c
  au! BufRead,BufNewFile *.defs                 setfiletype scheme
augroup END

- No comments Not publicly viewable

Add a comment

You are not allowed to comment on this entry as it has restricted commenting permissions.

This blog is obsolete

From 20th August 2007, this blog is no longer being updated. For something more recent, please visit Tim Retout’s website.

Search this blog

Not signed in
Sign in

Powered by BlogBuilder