2
0
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:
Eisuke Kawashima
2025-05-04 23:00:29 +09:00
parent e510dfd0e7
commit b50f516a78
470 changed files with 471 additions and 477 deletions

View File

@@ -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

View File

@@ -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