How to configure Vim for Android development?

Can someone describe a good Vim setup for Android Development? I use Eclipse, but I would really like to use Vim, because it is faster, and I like it better. For example, I am not interested in Eclim.

I wonder what Vim plugins are used (for Java, autocomplete, etc.), what .vimrc looks .vimrc and how the whole process of creating / running applications works (as efficiently as possible).

+71
android vim
Jul 02 2018-10-02T00:
source share
5 answers

I once had to develop Android on a netbook and set up a nice Vim setup for this purpose. Seriously, this is easier than it sounds:

  • Run the emulator from the command line. It does not matter. I started with this something like this:

    emulator -avd BlaDevice -no-boot-anim -scale 0.65 -show-kernel

  • To create and reinstall the modified application into the emulator, simply run ant reinstall from the project root. Match this command in Vim with your keyboard shortcut.

  • I used a typical Vim setting: NERDTree , FuzzyFinder and omnicomplete. Java syntax highlighting works out of the box.

  • You never had to install Eclim , omnicomplete works just fine at best.

+53
Jul 02 2018-10-02T00:
source share

I only worked a bit with Android development with VIM, but I would really like to offer you a head around Ant (which the SDK uses to create projects from the command line) and, possibly, Maven, if you Dare. You will use Ant a lot!

There are several VIM / VIM autocomplete scripts, but don't expect them to be as fast or useful as Eclipse. I found myself doing a lot more input than with Eclipse ...

+3
Jul 02 '10 at 18:10
source share

I am working on a vim plugin for Android development: https://github.com/hsanson/vim-android . It still works, but it has the great functionality needed to develop Android using vim.

I still have some problems to solve, but most of them are not related to the plugin:

  • Gradle errors from aapt report the wrong file. This causes the error to go from the quickfix pain window when it opens the wrong file.
  • I cannot execute javacomplete correctly. When the autocomplete class I wrote, it gets stuck in the "Search ..." and when the autocomplete library or external JAR method javacomplete weaves hundreds of errors, which makes it impossible to use.
+2
Oct 06 '13 at 14:28
source share

Both of the proposed @Dave and @buru prompted me to work on a plugin for Vim, which will help you work on development in Vim applications for Android. The parity of functions for top-level tools, such as visual development, does not yet exist, but I was wondering if we could generate some components using Fries and expanding it.

The plugin is called android.vim and it was on Github @ jalcine.imtqy.com / android.vim. I am very open to ideas and aspirations, so do not be shy!

Change I removed this plugin because I donโ€™t have the time or focus for it to work :(

+1
Jul 26 '13 at 10:37
source share

I just created a vim script for Android development, it is called adt.vim, and I use it, I hope you like it. http://www.vim.org/scripts/script.php?script_id=4330

If any suggestion, please tell me, it is still under improvement.

0
Jul 31 '13 at 13:40
source share



All Articles