pyrex.vim ?

S

Simon Burton

Looks like the pyrex guy uses emacs...

Anyone have any hints/ideas/scripts for getting some vim syntax colors for
pyrex ?

Simon.
 
S

Simon Burton

Looks like the pyrex guy uses emacs...

Anyone have any hints/ideas/scripts for getting some vim syntax colors for
pyrex ?

Simon.

python.vim seems to work well enough,
my filetype.vim has this now:

" Python
au BufNewFile,BufRead *.py setf python

" PyRex
au BufNewFile,BufRead *.pyx setf python
 
D

David M. Cooke

At some point said:
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
endif

That'll use the python syntax for pyrex files.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,091
Messages
2,570,605
Members
47,225
Latest member
DarrinWhit

Latest Threads

Top