Skip to content

Instantly share code, notes, and snippets.


Micah Elliott MicahElliott

View GitHub Profile
MicahElliott / clj-fold.vim
Created Jul 4, 2012 — forked from dakrone/gist:519858
Automagic Clojure folding on defns and defmacros
View clj-fold.vim
" ---------------------------------------------------------------------------
" Automagic Clojure folding on defn's and defmacro's
" Blog post:
function GetClojureFold()
if getline(v:lnum) =~ '^\s*(defn.*\s'
return ">1"
elseif getline(v:lnum) =~ '^\s*(def\(macro\|method\|page\|partial\).*\s'
return ">1"