Bug 56275 - vim syntax highlighting for selinux policy
Bug#: 56275 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: enhancement Priority: P4
Resolution: FIXED Assigned To: vim@gentoo.org Reported By: pebenito@gentoo.org
Component: Applications
URL: 
Summary: vim syntax highlighting for selinux policy
Keywords:  
Status Whiteboard: 
Opened: 2004-07-06 13:57 0000
Description:   Opened: 2004-07-06 13:57 0000
Here is the selinux policy syntax highlighting, it seems reasonable to add in
with USE=selinux.

http://www.cip.ifi.lmu.de/~bleher/selinux/te.vim

The author says it needs this in filetype.vim[1] to autoload it:

augroup filetypedetect
au BufNewFile,BufRead *.te     setf te
augroup END

------- Comment #1 From Ciaran McCreesh 2004-07-06 14:19:18 0000 -------
As discussed, I'll put this in app-vim/ somewhere rather than cluttering up
vim-core. Need to read up on how to do filetypes properly first, since editing
filetype.vim is not a good idea...

------- Comment #2 From Ciaran McCreesh 2004-07-06 17:07:50 0000 -------
In cvs as app-vim/selinux-syntax, keyword ~sparc ~mips. :help filetype.txt and
:help syntax explain how to do this tidily, no need to screw around with the
main filetype file.