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

E

Evan

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,
 
J

Joe Riopel

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.
 

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

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top