Commits

Meikel Brandmeyer committed 403e406

Made indent to be conditional on the availability of searchpairpos

Comments (0)

Files changed (1)

 setlocal softtabstop=2
 setlocal shiftwidth=2
 
+if exists("*searchpairpos")
 function! s:MatchPairs(open, close, stopat)
 	let c = getpos(".")
 
 	return ind
 endfunction
 setlocal indentexpr=GetClojureIndent()
+else
+	setlocal indentexpr=
+	setlocal lisp
+
+	let b:undo_indent = b:undo_indent . " lisp<"
+endif
 setlocal indentkeys=!,o,O
 
 " Defintions: