" Language: apache " Maintainer: Satya P " Last Change: Sat, 27 Jan 2007 11:24:59 EST " Notes: 0) Copied from Johannes Zellner 's xml " indent script " Only load this indent file when no other was loaded. if exists("b:did_indent") finish endif let b:did_indent = 1 " [-- local settings (must come before aborting the script) --] setlocal indentexpr=ApacheIndentGet(v:lnum,1) setlocal indentkeys=o,O,*,<>>,<<>,/,{,} set cpo-=C " [-- finish, if the function already exists --] if exists('*ApacheIndentGet') | finish | endif fun! ApacheIndentGet(lnum, use_syntax_check) " Find a non-empty line above the current line. let lnum = prevnonblank(a:lnum - 1) " Hit the start of the file, use zero indent. if lnum == 0 return 0 endif let prevline=getline(lnum) let line=getline(a:lnum) let ind=indent(lnum) let inddelta=0 if match(line, '^\s*