vim-gradle


Ⅰ. 插件描述

import repo 'sw-samuraj/vim-gradle' from bitbucket using fast-export

Ⅱ. 基本信息

创建日期:  2015-10-07
使用用户:  4
Github星:  1
插件作者:  Huanming Peng

Ⅲ. 安装方法

使用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-gradle

Classic 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 ~/.vim

Through the Gradle

Your interest in the vim-gradle plugin probably means that you have Gradle already installed. Then you can run either

#!shell
gradle installBundle

for Pathogen-like installation, or

#!shell
gradle installVimball

for classic-like installation.

Uninstallation

Vim Pathogen Plugin

#!shell
rm -rf ~/.vim/bundle/vim-gradle

Classic Vim Layout

#!shell
cd ~/.vim
rm -rf syntax/gradle.vim ftdetect/gradle.vim compiler/gradle.vim after/syntax/groovy.vim

Through the Gradle

If you have Gradle already installed, then you can uninstall vim-gradle by

#!shell
gradle uninstallBundle

for the Pathogen bundle, or

#!shell
gradle uninstallVimball

for the classic layout.

TODO

  • Add Vim documentation (available through :help command).
  • Add :gradle command 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.

添加新评论