pyrex.vim ?

David M. Cooke cookedm+news at
Thu Aug 21 05:08:48 CEST 2003

At some point, Simon Burton <simonb at> wrote:

> Looks like the pyrex guy uses emacs...
> Anyone have any hints/ideas/scripts for getting some vim syntax colors for
> pyrex ?

Add this to your .vimrc:

if !exists("autocommands_loaded")
    let autocommands_loaded=1
    augroup filetypedetect
        au! BufRead,BufNewFile *.pyx setfiletype python
    augroup END

That'll use the python syntax for pyrex files.

|David M. Cooke

More information about the Python-list mailing list