GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bpowell/vim-android: Vim plugin to do android development.

BranchesTags
Open more actions menu

Latest commit

 

History

25 Commits
25 Commits

Folders and files

NameName
Last commit message
Last commit date
adbLogCat
adbLogCat
 
 
findAndroidManifest
findAndroidManifest
 
 
.gitignore
.gitignore
 
 
Javacomplete2.makefile
Javacomplete2.makefile
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
Snipmate.makefile
Snipmate.makefile
 
 
android-install.sh
android-install.sh
 
 

Repository files navigation

vim-android

Develop for Android using vim.

Overview

There are three vim scripts that are included in this setup. Those scripts are:

  1. SuperTab

    • GitHub
    • Vim.org

    SuperTab allows us to autocomplete with the tab key.

  2. snipMate

    • GitHub
    • Vim.org

    snipMate gives us the ability to add some abilities of the text editor TextMate.

  3. javacomplete2

    • GitHub
    • Vim.org

    Javacomplete does the omnicompletion for the java and android classes/functions.

How it works

findAndroidManifest is a custom vim script that uses python to do the heavy lifting. This script will try and find an AndroidManifest.xml file in the current directory. If the file is not found in the current directory. It will serach up the directory tree until it finds one or it hits the root directory. Everytime vim is started up and a java file is detected, the script is ran to find the AndroidManifest.xml. If the manifest file is found, it will detect the version of android that you are targeting. It then adds the jar file for the target version of android to the classpath. This way javacomplete can omnicomplete android classes/functions. The way omnicompletion works is by pressing either the tab key or [Ctrl + X] and [Ctrl + U].

adblogcat is another custom vim script that uses some python. The current binding to use this script is . Pressing loads up a preview window with the output of adb logcat. The output of adb logcat is piped out to a file in the /tmp directory. The exact file is /tmp/adb-logcat-output.adb. The preview window is loaded up with this file. The preview window will be updated every second. As of right now, while the preview window is opened, you cannot edit the file you are working on. Before the preview window is updated, it jumps back to preview buffer and then updates. To turn this off and stop adb logcat hit again.

Requirements

  • ctags
  • Vim with Python bindings
  • Python
  • Android SDK
  • make
  • git

Installation

First-time installation:

chmod +x android-install.sh
./android-install.sh

The installer for this setup generates a ctags file that is placed in your ~/.vim folder. This is only ran once. Anytime that the Android SDK is updated you should run the following command:

ctags --recurse --langmap=Java:.java --languages=Java --verbose -f ~/.vim/tags $ANDROID_SDK/sources

This is what javacomplete uses for the android omnicompletion.

About

Vim plugin to do android development.

Resources

Readme
Activity

Stars

181 stars

Watchers

16 watching

Forks

15 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.