All entries for Wednesday 15 August 2007

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")
  finish
endif
augroup filetypedetect
  au! BufRead,BufNewFile *.override             setfiletype c
  au! BufRead,BufNewFile *.defs                 setfiletype scheme
augroup END

Afghanistan and opium

I heard on the radio this morning that the US have a new counternarcotics strategy for Afghanistan – they’re going to pay rewards to governors for reducing poppy planting, among other measures. 90% of opium production takes place in that country, and it’s a delicious irony that the Taliban insurgency is probably mostly being funded by their enemies’ heroin addictions. Doubly ironic because the Taliban had nearly eradicated opium production by 2001.


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
© MMXXIII