C++ IDE Recommendation

Marc Lanctot lanctot-yfeSBMgouQgsA/PxXw9srA at public.gmane.org
Mon Mar 16 15:51:04 UTC 2009


On 16/03/09 11:35 AM, Marc Lanctot wrote:
> On 16/03/09 11:18 AM, Lennart Sorensen wrote:
>>
>> gvim supports ctags which does the indexing.
>
> I use the taglist plugin for vim -- is that the one you're referring to?
> It will list your functions and you can choose to jump to them.
>
> It's nice, but I need something better than that. I need to, given a
> name in a source file (eg. a function call or class name), jump to that
> method or class's definition. Given a variable name, jump to its
> declaration. Given a class name jump to its definition.
>
> Having this feature is really nice for productivity in large projects..
> I got hooked when using Eclipse with Java projects.
>
> If you find me a way to do this in vim I'll stick with it. But at the
> moment my code base is getting to be large and I'm spending a good deal
> of time opening files and finding the code associated with the functions.

I'll answer my own question here: yes, gvim with ctags will work.

   http://linuxdocs.org/HOWTOs/Vim-HOWTO-6.html

I'm quite surprised.

So far it doesn't seem to work as well as Anjuta's.

Do you know of a way to make it so that of the definition is in a file 
different than the current on it opens the file and jumps to the 
definition in a new tab?

Actually, I'll answer my own question to that one as well. Yes you can 
by adding a def to your .vimrc:

http://stackoverflow.com/questions/563616/vimctags-tips-and-tricks

> I'll try to be true to vim for as long as I can. :)

Maybe gvim and I will remain friends for longer than I thought...

Marc

-- 
Any code of your own that you haven't looked at for six or more months
might as well have been written by someone else.
   -- Eagleson's law
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list