This is only a mirror, the main web site is at www.barisione.org. |
This is only a mirror, the main web site is at www.barisione.org. |
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.
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
In the Italian version of this page you can find some slides and tutorials (obviously in Italian) on Python.