Skip to content

Latest commit

 

History

History
22 lines (10 loc) · 851 Bytes

README.md

File metadata and controls

22 lines (10 loc) · 851 Bytes

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 yout Android SDK path.

Usage

Start vim in an Android project -I use NERDTree so I'm starting at a project's root-, you're done.

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.