Skip to content

vim-scripts/javaimp.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

This is a mirror of http://www.vim.org/scripts/script.php?script_id=75

Set of functions to open a Java import statement as a file.
Maintained by Darren Greaves http://boncey.org/showBlog.go?id=138
Suggested stuff to add to your ~.vimrc:
let $JAVASOURCEPATH="$SERVLET_HOME/src/share,$JAVA_HOME/src,$XML_HOME/src"
map H :call OpenJavaImport($JAVASOURCEPATH)<CR>
Then press H while on a import line and the file should open (you'll need the
source files and the path to have been set 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.

About

Open a Java source file from its import statement

Resources

Stars

Watchers

Forks

Packages

No packages published