Ⅰ. 插件描述
A vim plugin to display unused imports for javaⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'akhaku/vim-java-unused-imports'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'akhaku/vim-java-unused-imports'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'akhaku/vim-java-unused-imports'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/akhaku/vim-java-unused-imports
Ⅳ. 文档说明
#Vim Java unused imports#
v1.1.1
Author: akhaku
A simple vim plugin to show unused imports in a java file. Built for purely
selfish reasons, open-sourced to help others.
This is my first dabble im Vim scripting, so feedback is welcome.
Usage
This plugin works with pathogen. Simply
clone this repository to a subfolder within bundle/. Alternatively, copy
unused-imports.vim to plugin/
In normal mode:
:UnusedImports " highlight all unused imports
:UnusedImportsReset " clear the highlights
:UnusedImportsRemove " remove all unused imports
This software is provided as-is, without any warranty whatsoever.