vim-gradle


Ⅰ. 插件描述

Simple little vim-bundle that recognizes .gradle files as being groovy syntax

Ⅱ. 基本信息

创建日期:  2012-08-14
使用用户:  393
Github星:  117
插件作者:  Thomas Ferris Nicolaisen

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'tfnico/vim-gradle-the-lucky-one'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'tfnico/vim-gradle-the-lucky-one'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'tfnico/vim-gradle-the-lucky-one'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# VIM-GRADLE #

This vim bundle simply recognizes .gradle files as being groovy syntax. It also adds a vim compiler
plugin for gradle.

Installation

  • Install pathogen into ~/.vim/autoload/ and add the
    following line to your ~/.vimrc:
    call pathogen#infect()

Of course, if you use Janus, you should put the clone in ~/.janus/
instead.

That's it. Pathogen should handle the rest.

Usage

Syntax Highlighting

.gradle files will now have groovy syntax highlighting.

Compiler Plugin

You can now use :compiler gradle to set gradle as the compiler. :make build will then run
gradle build (for example) and the quickfix window will be loaded with parsed error results.

Credits

Inspiration from vim-less.

添加新评论