javaimp is a vim plugin that allows you to open a file from its import entry in a Java source file.
To set it up, ensure you have the source code available for the files you want to be able to open.
Determine the path to the source code for each different module you use.
Each path entry should point to the directory in which the source resides, ie,
Example entry to add to your ~.vimrc:
map H :call OpenJavaImport($JAVASOURCEPATH)<CR>
Then press H while on a import line and the file should open (assuming the source files and the path have been set up already).
The paths in
$JAVASOURCEPATH should have the source packages directly
underneath each path. The script needs to be able to add the package to the
path element and open a file.
Vim 6: Copy to
Vim 5: Copy to
$VIM and add “
source $VIM/javaimp.vim” to your vimrc
Any problems, add a comment below or use the contact form.