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