Tuesday, September 15, 2009

Vim with mlcscope

It's been a while since my last post...

You know, my IDE is bash + Vim + exuberant ctags + cscope + GNU
global(optional), normally. This is almost perfect when I am doing C/C++
development. But now, I spend quite a lot of time doing Python programming.
ctags for python is not enough. GNU global is not supporting Python at all.
So I am looking into the multi-lingual verion of cscope, that is, mlcscope.

But getting Vim to work with mlcscope is a bit problematic. I searched Google
for the solution. The top post is this one, which is dated and no good solution
provided. So what I am going to do here is to put my solution into the
WWW database. To let Vim use the cscope.out file generated by mlcscope,
you just need to "set cscopeprg=mlcscope" in your vim start setting file.
Obviously, the cscope.out file generated by mlcscope cannot be read correctly
by the original cscope.

1 comment:

  1. OK. To have a complete record. Before Vim version
    7.0.184, the above solution won't work, either.
    There is a fix introduced after that which makes
    Vim and mlcscope working together fine using the
    above method.

    ReplyDelete