3

Or one shouldn't use vim for such goals?

dhblah
  • 9,751
  • 12
  • 56
  • 92

3 Answers3

1

You should try out the Vim Taglist plugin; it allows you to browse between source code tags in a variety of languages.

asthasr
  • 9,125
  • 1
  • 29
  • 43
0

You should use the integration of exuberant-ctags with vim for that purpose. It handles java quite well.

See this article for example.

tonio
  • 10,355
  • 2
  • 46
  • 60
  • I didn't see anything about "finding usage of classes and methods" there, only looking up definitions. Which the question does not seem to be about. – Sam Jul 15 '11 at 13:41
  • Right, this does not exactly solve this need, but the [faq](http://ctags.sourceforge.net/faq.html#12) gives a good lead. – tonio Jul 16 '11 at 06:45
0

I'm sure it is possible, wither it is easy and how to do it are different questions. The VI and there for VIM philosophy tends to simplicity and lightness. IDE features like find usage tend to slow down startup and increase memory footprint, so I would expect to find very few VIM plugins to do this.

I would suggest loading up your classes in an IDE ( like the free eclipse ) or if you much prefer command line try emacs as this gets much closer to a command line IDE then VIM.

David Waters
  • 11,979
  • 7
  • 41
  • 76
  • 1
    Looks like a bit of a non-answer to me. Your answer could be summarized as "I think it might be possible, but I don't know how. Anyway, use something else" :) – Sam Jul 15 '11 at 13:38
  • @Sam - the question included "Or one shouldn't use vim for such goals?" I was more answering that question then the question in the title. – David Waters Jul 15 '11 at 14:39