Ⅰ. 插件描述
Syntax highlighting for AOSP specific filesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'rubberduck203/aosp-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'rubberduck203/aosp-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'rubberduck203/aosp-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/rubberduck203/aosp-vim
Ⅳ. 文档说明
# aosp-vim
Syntax highlighting for AOSP specific files
These files add syntax highlighting for *.hal, *.bp, and *.rc files.*.bp files are really just json files, so we simply use javascript highlighting for those.
The *.hal implementation is incomplete, but better than using C or none at all.
The HIDL grammar is documented on the AOSP site.
https://source.android.com/devices/architecture/hidl/#grammar
The *.rc implementation is reasonably complete, but could be smarter about opening blocks for services and triggers
instead of relying solely on matching keywords.
Documenation for most of the keywords and syntax can be found in the Init.rc README.
Installation
Pathogen
git clone https://github.com/rubberduck203/aosp-vim.git ~/.vim/bundle/aospVim 8
mkdir -p ~/.vim/pack/plugins/start
git clone https://github.com/rubberduck203/aosp-vim.git ~/.vim/pack/plugins/start/aosp