javaimp.vim


Ⅰ. 插件描述

Open a Java source file from its import statement

Ⅱ. 基本信息

创建日期:  2001-09-02
使用用户:  1
Github星:  1
插件作者:  Darren Greaves

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/javaimp-vim-impatience-and-laziness'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/javaimp-vim-impatience-and-laziness'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/javaimp-vim-impatience-and-laziness'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/javaimp.vim

Ⅳ. 文档说明

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.

添加新评论