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