https://github.com/rubberduck203/aosp-vim
Syntax highlighting for AOSP specific files
https://github.com/rubberduck203/aosp-vim
android aosp vim
Last synced: about 1 year ago
JSON representation
Syntax highlighting for AOSP specific files
- Host: GitHub
- URL: https://github.com/rubberduck203/aosp-vim
- Owner: rubberduck203
- License: gpl-3.0
- Created: 2017-11-18T00:52:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-17T00:22:49.000Z (over 7 years ago)
- Last Synced: 2025-03-31T00:41:18.430Z (about 1 year ago)
- Topics: android, aosp, vim
- Language: Vim script
- Size: 21.5 KB
- Stars: 19
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://android.googlesource.com/platform/system/core/+/master/init/README.md).
## Installation
### Pathogen
```bash
git clone https://github.com/rubberduck203/aosp-vim.git ~/.vim/bundle/aosp
```
### Vim 8
```bash
mkdir -p ~/.vim/pack/plugins/start
git clone https://github.com/rubberduck203/aosp-vim.git ~/.vim/pack/plugins/start/aosp
```