pyrex.vim ?

Discussion in 'Python' started by Simon Burton, Aug 21, 2003.

  1. Simon Burton

    Simon Burton Guest

    Looks like the pyrex guy uses emacs...

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

    Simon.
     
    Simon Burton, Aug 21, 2003
    #1
    1. Advertising

  2. Simon Burton

    Simon Burton Guest

    On Thu, 21 Aug 2003 10:10:25 +1000, Simon Burton wrote:

    >
    > 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
     
    Simon Burton, Aug 21, 2003
    #2
    1. Advertising

  3. At some point, Simon Burton <> 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
    endif

    That'll use the python syntax for pyrex files.

    --
    |>|\/|<
    /--------------------------------------------------------------------------\
    |David M. Cooke
    |cookedm(at)physics(dot)mcmaster(dot)ca
     
    David M. Cooke, Aug 21, 2003
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?iso-8859-1?Q?Fran=E7ois?= Pinard

    Re: Pyrex without Python (was Re: calling Pyrex results from C)

    =?iso-8859-1?Q?Fran=E7ois?= Pinard, Jan 21, 2004, in forum: Python
    Replies:
    3
    Views:
    332
    A.M. Kuchling
    Jan 21, 2004
  2. tocer
    Replies:
    0
    Views:
    491
    tocer
    Aug 28, 2004
  3. Chris Lambacher
    Replies:
    0
    Views:
    684
    Chris Lambacher
    Jun 8, 2005
  4. Greg Ewing
    Replies:
    2
    Views:
    373
    Dieter Maurer
    Jun 29, 2006
  5. Daniel Folkes

    New to Vim and Vim-Python

    Daniel Folkes, Oct 24, 2007, in forum: Python
    Replies:
    3
    Views:
    552
    projecktzero
    Oct 25, 2007
Loading...

Share This Page