Ⅰ. 插件描述
import repo 'sw-samuraj/vim-gradle' from bitbucket using fast-exportⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'gisphm/vim-gradle-tree-and-truth'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'gisphm/vim-gradle-tree-and-truth'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'gisphm/vim-gradle-tree-and-truth'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/gisphm/vim-gradle
Ⅳ. 文档说明
# vim-gradle #
The purpose of this project is to maintain missing Gradle capabilities in Vim. Particularly:
- File extension recognition
- Syntax highlighting
- Folding
- Ctags support for Tagbar plugin
Additionally, some missing Groovy features are provided as well:
- Folding for Groovy files
- Groovy Ctags support for Tagbar plugin
Installation
Vim Pathogen Plugin
If you are using Vim Pathogen plugin, then the installation is simple and straightforward:
#!shell
cd ~/.vim/bundle
hg clone https://bitbucket.org/sw-samuraj/vim-gradleClassic Vim Layout
If you prefer the traditional Vim layout, you can copy all the directories to your $VIM_HOME:
#!shell
cp -r after compiler ctags ftdetect ftplugin syntax ~/.vimThrough the Gradle
Your interest in the vim-gradle plugin probably means that you have Gradle already installed. Then you can run either
#!shell
gradle installBundlefor Pathogen-like installation, or
#!shell
gradle installVimballfor classic-like installation.
Uninstallation
Vim Pathogen Plugin
#!shell
rm -rf ~/.vim/bundle/vim-gradleClassic Vim Layout
#!shell
cd ~/.vim
rm -rf syntax/gradle.vim ftdetect/gradle.vim compiler/gradle.vim after/syntax/groovy.vimThrough the Gradle
If you have Gradle already installed, then you can uninstall vim-gradle by
#!shell
gradle uninstallBundlefor the Pathogen bundle, or
#!shell
gradle uninstallVimballfor the classic layout.
TODO
- Add Vim documentation (available through
:helpcommand). - Add
:gradlecommand for running Gradle tasks. - Improve Ctags mapping for Gradle and Groovy files.
Contribution guidelines
I'll be happy with any participation or feedback. Please, feel free to:
- fork the project
- send me a pull request
- track a bug, or an enhancement
- or anything else what can improve this plugin.
License
The vim-gradle plugin is published under BSD 3-Clause license.