Pyrex and Vim
Pyrex is a Python-like language for writing extension modules for Python. These files (already included in recent versions of Vim) allow you to enable syntax highlight and automatic indentation for Pyrex files.
How to install
Uncompress the archive in a directory in runtimepath, for instance "~/.vim/" on unix, or "c:\Program Files\Vim\vimfiles" on Windows.
Create a file "filetype.vim" in your runtimepath and write this commands:
augroup filetypedetect au BufNewFile,BufRead *.pyx,*.pxd setf pyrex augroup END
If you prefer you can put the commands in your ".vimrc" file but Vim could open some files with an erroneous file type.
To see your runtimepath just type ":set runtimepath?" while in normal mode in Vim




