View clj-fold.vim
" --------------------------------------------------------------------------- | |
" Automagic Clojure folding on defn's and defmacro's | |
" | |
" Blog post: http://writequit.org/blog/?p=413 | |
function GetClojureFold() | |
if getline(v:lnum) =~ '^\s*(defn.*\s' | |
return ">1" | |
elseif getline(v:lnum) =~ '^\s*(def\(macro\|method\|page\|partial\).*\s' | |
return ">1" |