arm-syntax-vim/README.md

21 lines
444 B
Markdown
Raw Normal View History

2015-03-08 05:58:42 -07:00
Syntax highlighting for GAS ARM assembly (up to v7), for the vim text editor.
### Installing
Copy /syntax into ~/.vim
__or with Pathogen__
Clone this repo into your ~/.vim/bundle directory.
```
git clone https://github.com/ARM9/arm-syntax-vim.git
```
### Using
In your .vimrc:
```
2015-04-01 08:45:21 -07:00
au BufNewFile,BufRead *.s,*.S set filetype=arm " arm = armv6/7
2015-03-08 05:58:42 -07:00
```
and/or put this line near the top or bottom of your assembly file(s):
```
2015-04-01 08:45:21 -07:00
@ vim:ft=armv5
2015-03-08 05:58:42 -07:00
```