Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56275 - vim syntax highlighting for selinux policy
Summary: vim syntax highlighting for selinux policy
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Low enhancement (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-06 13:57 UTC by Chris PeBenito (RETIRED)
Modified: 2004-07-06 17:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris PeBenito (RETIRED) gentoo-dev 2004-07-06 13:57:34 UTC
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 Ciaran McCreesh 2004-07-06 14:19:18 UTC
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 Ciaran McCreesh 2004-07-06 17:07:50 UTC
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.