How can I work on VIM for python code such as cscope for C code?

Discussion in 'Python' started by Evan, Sep 12, 2007.

  1. Evan

    Evan Guest

    Hi, guys ~~

    How can i work on VIM for python code? I use cscope plugin on VIM for
    C code before, it helps me to different function and search C
    variable where it is defined.

    I'm now starting to learn python, and I'd like to know how works on
    VIM.

    I saw that the VIM is support python such as syntax highlighting,
    autocmd,etc. but I really want to know if it can work with TAG.

    Do I need to downlaod other software/plugin?

    Thanks,
     
    Evan, Sep 12, 2007
    #1
    1. Advertisements

  2. Evan

    Joe Riopel Guest

    On 9/12/07, Evan <> wrote:
    > Hi, guys ~~
    >
    > How can i work on VIM for python code? I use cscope plugin on VIM for
    > C code before, it helps me to different function and search C
    > variable where it is defined.


    Change to the top level directory that contains your python source
    files, and do
    find -name '*.py' > cscope.files
    cscope -b

    Then it should work.

    > Do I need to downlaod other software/plugin?


    You might, if do you not have the cscope_maps.vim plugin. If not you
    can get it http://cscope.sourceforge.net/cscope_vim_tutorial.html and
    just put it in your vim plugins directory.
     
    Joe Riopel, Sep 12, 2007
    #2
    1. Advertisements

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. tocer
    Replies:
    0
    Views:
    633
    tocer
    Aug 28, 2004
  2. Roland Puntaier

    call graph using python and cscope

    Roland Puntaier, Jan 10, 2007, in forum: Python
    Replies:
    0
    Views:
    928
    Roland Puntaier
    Jan 10, 2007
  3. Daniel Folkes

    New to Vim and Vim-Python

    Daniel Folkes, Oct 24, 2007, in forum: Python
    Replies:
    3
    Views:
    718
    projecktzero
    Oct 25, 2007
  4. Gelonida
    Replies:
    3
    Views:
    2,582
    Tim Harig
    Aug 8, 2010
  5. Guoliang Cao

    vim 6.2 + vim-ruby don't work

    Guoliang Cao, Oct 16, 2003, in forum: Ruby
    Replies:
    1
    Views:
    303
    Brett H. Williams
    Oct 16, 2003
  6. Vincent Foley
    Replies:
    6
    Views:
    335
    Gavin Sinclair
    Apr 10, 2006
  7. lolveley
    Replies:
    3
    Views:
    423
  8. Pen Ttt

    my vim and cream can't work!

    Pen Ttt, Apr 15, 2010, in forum: Ruby
    Replies:
    4
    Views:
    266
    Walton Hoops
    Apr 15, 2010
Loading...