vimport


Ⅰ. 插件描述

Vim plugin for adding import statements

Ⅱ. 基本信息

创建日期:  2013-05-23
使用用户:  2
Github星:  1
插件作者:  Shaun Jurgemeyer

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'sjurgemeyer/vimport'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'sjurgemeyer/vimport'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'sjurgemeyer/vimport'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

This is a plugin for vim that allows you to easily add imports within java, groovy, grails and kotlin projects.

The plugin has a few different mechanisms for finding a class's package. It can search the current working directory, search a text file that lists the full package and classname, or use a gradle build to determine the classpath and find the classes in jar files. Note that the gradle functionality requires VIM with python support.

Installation

Vundle (http://github.com/gmarik/vundle)

Include the following line in your .vimrc

Bundle 'sjurgemeyer/vimport'

Then, run

:BundleInstall

Pathogen (https://github.com/tpope/vim-pathogen)

Clone the plugin's git repository

git clone git://github.com/sjurgemeyer/vimport.git ~/.vim/bundle/vimport

You can also just copy the files the old fashioned way, but I don't condone that type of behavior

Usage

Please see /doc/vimport.txt for additional details on usage and configuration.

添加新评论