Skip to content

Commit

Permalink
Updated the vim.gradle script to work in new Syntastic version
Browse files Browse the repository at this point in the history
Updated README
  • Loading branch information
racerxdl committed Apr 7, 2015
1 parent 0f75e1c commit 32169a1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 8 deletions.
42 changes: 35 additions & 7 deletions README.md
Expand Up @@ -3,16 +3,44 @@ 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:

## Usage
apply the plugin file and then run the `vimFiles` task to generate the required
files. To ensure that syntastic is correctly configured you will also need to source
.vimrc.local
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

if filereadable(glob('./.vimrc.local'))
so ./.vimrc.local
endif
Then you will be ready to go! The `.syntastic-classpath` and `.vimrc.local` will be generated on the project root.




2 changes: 1 addition & 1 deletion vim.gradle
Expand Up @@ -19,7 +19,7 @@ task vimFiles << {
}
addJars(rootProject)

new File(rootProject.projectDir.absolutePath + "/.syntastic-classpath").text = classpathFiles.collect().join("\n")
new File(rootProject.projectDir.absolutePath + "/.syntastic-classpath").text = "let g:syntastic_java_javac_classpath = \""+classpathFiles.collect().join(":") + "\""

// create .vimrc.local
new File(rootProject.projectDir.absolutePath + "/.vimrc.local").text = """
Expand Down

0 comments on commit 32169a1

Please sign in to comment.