Sunday, 13 March 2011

Backing up the internet

Eclim is fabulous.

This post is purely to back up some information, because the original site seems to have disappeared. I found it from a Google cache, but that won't last forever. Here it is (apologies for the shoddy formatting):

Besides .vimrc setting, the complete flow to develop Android app using vim + command line is as follows:
  1. Start eclim by starting its server first. 

  2. Navigate to project folder. (ex. ~/workspace), and start vim. Use :ProjectCreate to create new project
  3. Alternatively, navigate to existing project (ex. ~/workspace/your_android_app), use

    :ProjectTree <project name>

    to open existing one.

    But with the above .vimrc, vim/eclim should be able to automatically open the project tree view for you by just entering vim.  There is no need to follow this step, indeed.
  4. For editing, :FirstExplorerWindow to the tree view or Ctrl+w Ctrl+w, use :Tlist to open taglist

    Open new tab by <Enter> or open split window by <S>, when navigating in the project file tree view. 
  5. When :w, eclim will do :Validate for you, pointing out live syntax check and display suggestions like what you’ve got in Eclipse. 

    For auto-complete, Ctrl+x Ctrl+u as you’re used to. 
  6. To build project,


    Notes: if there is no build.xml, excute

    :!android update project -p .
  7. To start an AVD, use 

    android list avd

    emulator -avd <avd_name>

  8. To upload project to default emulator or device, 

    :Ant install
  9. To see LogCat debugging log, open another terminal, check available devices by 

    adb devices

    once you got what devices to look at, 

    adb -s <device_name> logcat
  10. To turn off eclimd, in vim, type :ShutdownEclim, or in command line, eclim -command shutdown

1 comment:

  1. Hehe, just noticed the search terms I used are still highlighted! I'll leave that there, for posterity :-)