java_apidoc.vim : Java API documentation viewer (JavaDoc)
script karma |
Rating 67/29,
Downloaded by 4945 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Paul Etchells |
|
script type |
ftplugin |
|
description |
When viewing/editing a Java source file, put the cursor on an 'import...' line, or on a class name such as 'String', and then press F2. A browser opens showing the API (generated JavaDoc HTML pages) for the imported package or class. The mechanism can be extended to include your own generated JavaDocs. |
|
install details |
Put this file in ~/.vim/ftplugin (or wherever Vim looks for plugins), then edit the code following the three lines marked in the script with CONFIGURATION to your taste.
CONFIGURATION - BROWSER
On a recent RedHat distribution, this should work (as will 'dillo', 'opera', 'ygti'), Windows users will probably want to set this to "explorer":
-----------------------------------------------------------------------------
au FileType java let browser="htmlview"
-----------------------------------------------------------------------------
CONFIGURATION - JAVA API PATH
Set the javadoc_path variable to a comma separated list of paths to the tops of the Javadoc trees. Change these to match your api locations. Windows users: You should use double backslashes when specifying path names, e.g. C:\\jdk\\doc\\api
-----------------------------------------------------------------------------
let javadoc_path="/home/etch/www/dox/java/j2se1.4.2/api"
-----------------------------------------------------------------------------
CONFIGURATION - KEY ASSIGNMENT
This is where you, er, assign the key you want to use.
-----------------------------------------------------------------------------
nmap <F2> :call OpenJavadoc()<CR><CR>
----------------------------------------------------------------------------- |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.117.244.233
|