2 " Language: XFree86 Configuration File
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
4 " Latest Revision: 2006-12-20
6 if exists("b:did_indent")
11 setlocal indentexpr=GetXF86ConfIndent()
12 setlocal indentkeys=!^F,o,O,=End
13 setlocal nosmartindent
15 if exists("*GetXF86ConfIndent")
19 function GetXF86ConfIndent()
20 let lnum = prevnonblank(v:lnum - 1)
26 let ind = indent(lnum)
28 if getline(lnum) =~? '^\s*\(Sub\)\=Section\>'
32 if getline(v:lnum) =~? '^\s*End\(Sub\)\=Section\>'