mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
chore: fix vim modelines
- set filetype, instead of syntax, in vim modelines - replace filetype of subdomain with apparmor - move modelines in the first or last five lines of each file so that vim can recognize them
This commit is contained in:
@@ -22,8 +22,8 @@
|
||||
" stick this file into ~/.vim/syntax/ and add these commands into your .vimrc
|
||||
" to have vim automagically use this syntax file for these directories:
|
||||
"
|
||||
" autocmd BufNewFile,BufRead /etc/apparmor.d/* set syntax=apparmor
|
||||
" autocmd BufNewFile,BufRead /usr/share/apparmor/extra-profiles/* set syntax=apparmor
|
||||
" autocmd BufNewFile,BufRead /etc/apparmor.d/* set filetype=apparmor
|
||||
" autocmd BufNewFile,BufRead /usr/share/apparmor/extra-profiles/* set filetype=apparmor
|
||||
|
||||
" profiles are case sensitive
|
||||
syntax case match
|
||||
|
@@ -32,7 +32,7 @@ Your system may be configured to automatically use syntax highlighting
|
||||
for installed AppArmor policies. If not, you can enable syntax highlighting in
|
||||
a specific vim session by performing:
|
||||
|
||||
:set syntax=apparmor
|
||||
:set filetype=apparmor
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
|
Reference in New Issue
Block a user