apparmor.vim - vim syntax highlighting file for AppArmor profiles



NAME

apparmor.vim - vim syntax highlighting file for AppArmor profiles


SYNOPSIS

To automatically use the apparmor.vim syntax highlighting in vim, place the following lines in your ~/.vimrc file:

 autocmd BufNewFile,BufRead /etc/apparmor.d/*  set syntax=apparmor
 autocmd BufNewFile,BufRead */sdprofiles/*     set syntax=apparmor
 autocmd BufNewFile,BufRead */codomain-*/*/*   set syntax=apparmor
 
 syntax on

If you wish to use the profile in a specific vim session, you may run:

 :syntax on
 :set syntax=apparmor


DESCRIPTION

apparmor.vim provides syntax highlighting rules for the vim(1) text editor; the rules provide an easy visual method to inspect AppArmor profiles for syntax correctness and semantics.

The most useful colors provided are red for unconstrained execute access, green for execute access, and yellow for write access.


FILES

/usr/share/vim/current/syntax/apparmor.vim


BUGS

apparmor.vim does not currently parse correctly files that are #include'd or hats (see change_hat(2)). Patches accepted. If you find any bugs, please report them to bugzilla at http://bugzilla.novell.com.


SEE ALSO

vim(1), apparmor(7), apparmor.d(5), change_hat(2), and http://forge.novell.com/modules/xfmod/project/

 apparmor.vim - vim syntax highlighting file for AppArmor profiles