gradle-vim-syntastic-plugin


Ⅰ. 插件描述

Don't use this. Use https://github.com/Scuilion/gradle-syntastic-plugin - it's better.

Ⅱ. 基本信息

创建日期:  2013-12-17
使用用户:  1
Github星:  3
插件作者:  Simon Hicks

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Don't use this. Use https://github.com/Scuilion/gradle-syntastic-plugin - it's better.

Gradle vim-syntastic plugin

a gradle plugin to generate the classpath file and config variables for getting
Syntastic.vim to work with a gradle build.

Obviously this plugin depends on the 'syntastic' vim plugin.

Installing (build.gradle)

Add contents of vim.gradle to your build.gradle:

apply plugin: 'java'
apply plugin: 'maven'
 
repositories {
     mavenCentral()
}
(...)
task vimFiles << {
    (...)

Installing (vim.gradle)

Just add the vim.gradle to the project root.

Installing - Adding support on VIM

The easiest way to do this is to add the following lines to the end of your .vimrc:

 if filereadable(glob('./.vimrc.local'))
     so ./.vimrc.local
 endif
 

Usage (build.gradle)

For installing stuff just run:

gradle vimFiles

Then you will be ready to go! The .syntastic-classpath and .vimrc.local will be generated on the project root.

Usage (build.gradle)

For installing stuff just run:

gradle -b vim.gradle vimFiles

Then you will be ready to go! The .syntastic-classpath and .vimrc.local will be generated on the project root.

添加新评论