Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Call Hierarchy Eclipse feature in Vim?

Tags:

c++

vim

eclipse

I am considering migrating from eclipse to vim for c++ development- I've recently "rediscovered" Vim, and finally went beyond the basics. I'm loving it, but there are still a few features that I use constantly in Eclipse that I'd also like to see in Vim.

One of them is call hierarchy. It's extremely helpful to know where a particular function/method is called throughout a project, and having an overview at a glance. Is there a similar plugin for that in Vim? Perhaps a combination of plugins/commands that are equivalent?

like image 873
Alexander Kondratskiy Avatar asked Jun 03 '11 20:06

Alexander Kondratskiy


2 Answers

https://stackoverflow.com/questions/149558/recommended-vim-plugins-for-c-coding

A combination of the cscope and taglist plugins (linked from above) should give you what you want. Possibly cctree. All of these have problems with templates, however.

Also check out eclim

like image 60
KarlM Avatar answered Oct 28 '22 12:10

KarlM


Eclipse has a built-in C++ parser that runs in the background and fully parses and semantically analyzes C++ code. This is what allows it to provide code completion, call hierarchy, refactoring and similar features.

I'm not aware of anything like that being available for vim. If someone knows something like that, I would be interested too.

like image 27
HighCommander4 Avatar answered Oct 28 '22 12:10

HighCommander4