Bram, Attached patch adds support for detecting logcheck's[0] rules files[1] as the logcheck filetype. The one use, so far, is to disable automatic wrapping of text since each line is supposed to contain a single regular expression.
[0]: http://logcheck.alioth.debian.org/ [1]: http://logcheck.alioth.debian.org/docs/README.logcheck-database -- James GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>
diff --git a/runtime/filetype.vim b/runtime/filetype.vim --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -993,6 +993,9 @@ " LiteStep RC files au BufNewFile,BufRead */LiteStep/*/*.rc setf litestep +" Logcheck files +au BufNewFile,BufRead /etc/logcheck/*.d*/* setf logcheck + " Login access au BufNewFile,BufRead /etc/login.access setf loginaccess diff --git a/runtime/ftplugin/logcheck.vim b/runtime/ftplugin/logcheck.vim new file mode 100644 --- /dev/null +++ b/runtime/ftplugin/logcheck.vim @@ -0,0 +1,17 @@ +" Vim filetype plugin file +" Language: Logcheck +" Maintainer: Debian Vim Maintainers <[email protected]> +" Last Change: 2010-07-27 +" License: GNU GPL, version 2.0 +" URL: http://hg.debian.org/hg/pkg-vim/vim/file/unstable/runtime/ftplugin/logcheck.vim + +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +let b:undo_ftplugin = "setl fo<" + +" Do not hard-wrap non-comment lines since each line is a self-contained +" regular expression +setlocal formatoptions-=t
signature.asc
Description: Digital signature
