Load Android jar when using javacomplete plugin
Vim script Shell
Pull request Compare This branch is even with anddam:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
export_to_vim.sh
java.vim

README.md

What is this?

This is a plugin that adds Android SDK jar to CLASSPATH when using javacomplete plugin allowing you to complete classes from Android SDK.

Install

Copy java.vim to ~/.vim/after/ftplugin/ this will load the script whenever 'java' filetype is set.

Edit s:androidSdkPath in java.vim accordingly to your Android SDK path.

Usage

Cd to an Android project, start vim and you're done. I use NERDTree so I'm usually strating vim at a project's root as habit.

The script will recognize this is an Android project by checking AndroidManifest.xml and will get the target from project.properties, then it will prepend the jar path to CLASSPATH and the Android API will be available to omnifunc completion.

License

As usual (will fill in when I'll manage to understand license-world).

Enjoy