/jcall.vim

Vim Plugin enabling eclipse like call hierarchy and jump to definition.

Primary LanguagePython

JCall

JCall is a plugin for vim. It allows a user to navigate java code in two ways (inspired by eclipse).

  • See from where a method might be called. (Call Hierarchy)
  • Jump to a method's definition. Like ctags, but smarter and a little bit slower.

Installation

This plugin requires python 2.4+ and support in vim. You can test your vim by seeing if the following command returns a 1.

:echo has('python')

This plugin also requires find, sed, make, and the JDK (for javap).

See Vundle or Pathogen

Usage

Screencast of open Screencast of jump

See the vim help

Developer Info

This plugin is beta quality at the moment. It works by calling javap for each compiled class file and parsing the results. This is easier because the output of javap will have fully quantified method and class names and line breaks in consistent places. It's possible that the regular expressions will need to be updated for future versions of javap.

Testing

To checkout that the plugin is working, the jcall_test repository has some basic java code that can help verify correct functionality.