Ⅰ. 插件描述
android development utility in VIMⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/adt-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/adt-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/adt-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/adt.vim
Ⅳ. 文档说明
This is an utility for android development, it works on the current folder, you must ensure that the initial path contains a AndroidManifest.xml file and build.xml file, so that ant build can be executed.
It can run in windows and linux.
Functions:
AdtLogcat Fetch logs from android device and display in copen
window. If there are error or warning stacks, it will
be recorgnized as error, so that you can switch between
error message and codes by :cn and :cp. By default, it
is mapped as "Al"
AdtBuild Build the current android application, make sure there
are build.xml and AndroidMenifest.xml in current folder.
The build log will be displayed in copen window, so
that you can switch between error message and codes by
:cn and :cp. By default, it is mapped as "Ab"
AdtRun Run the current android application, make sure there
are build.xml and AndroidMenifest.xml in current
folder. By default, it is mapped as "Ar"
AdtClean Clean the current android application build
envirovement. By default, it is mapped as "Ac"
AdtHelp Get the help information of the word under cursor,
the cooresponding html file in android docs folder
will be opened by xdg-open. By default, it is mapped
as "Ah"
AdtJumpResouce If the word under cursor is layout resource, it will
open the xml layout resource in a splitted window. By
default, it is mapped as "Aj"
AdtCreate Create a new project, it is mapped as "Ap"
AdtStart Start the default activity for current android
application. By default, it is mapped as "As"