:wq - blog » folding http://writequit.org/blog Tu fui, ego eris Mon, 22 Dec 2014 14:54:59 +0000 en-US hourly 1 http://wordpress.org/?v=4.1.5 Automatically fold Clojure methods in Vim http://writequit.org/blog/2010/08/11/automatically-fold-clojure-methods-in-vim/ http://writequit.org/blog/2010/08/11/automatically-fold-clojure-methods-in-vim/#comments Wed, 11 Aug 2010 22:09:34 +0000 http://writequit.org/blog/?p=413 I’ve been trying to get this working for quite some time, I finally have a semi-working function to fold Clojure methods automatically.

First, here’s a picture of what you can expect to see when using this (click for larger version):

Click me!

And here’s the code (stick this in your .vimrc):

That’s it, easy as pie, enjoy the folding for Clojure files.

There are a few bugs with this because I’ve never actually written a Vim plugin, so I kind of hacked my way through this until I got it working. I welcome any feedback from someone with vimscript development experience (I’m looking at you Brian Carper ;))

]]>
http://writequit.org/blog/2010/08/11/automatically-fold-clojure-methods-in-vim/feed/ 2