javaimp.vim : Open a Java source file from its import statement
script karma |
Rating 15/6,
Downloaded by 1597 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Darren Greaves |
|
script type |
utility |
|
description |
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.
|
|
install details |
Vim 6: Copy to ~/.vim/plugin or $VIM/plugin directory
Vim 5 : Copy to $VIM and
- Add "source $VIM/javaimp.vim" to your vimrc |
|
script versions (upload new version)
Click on the package to download.
javaimp.vim |
0.2 |
2002-03-24 |
6.0 |
Darren Greaves |
Fixed broken regex that expected one space between import and package name.
Changed has("GUI") to has("gui_running") as I had this wrong.
Updated URL for new Web site for downloading. |
javaimp.vim |
0.1 |
2001-09-02 |
5.7 |
Darren Greaves |
Initial upload |
ip used for rating: 3.140.246.156
|