2 " Language: Eterm configuration file
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
4 " Latest Revision: 2006-04-19
6 if exists("b:did_indent")
11 setlocal indentexpr=GetEtermIndent()
12 setlocal indentkeys=!^F,o,O,=end
14 if exists("*GetEtermIndent")
18 function GetEtermIndent()
19 let lnum = prevnonblank(v:lnum - 1)
24 let ind = indent(lnum)
26 if getline(lnum) =~ '^\s*begin\>'
30 if getline(v:lnum) =~ '^\s*end\>'