Thanks Meikel! On Mar 17, 2011, at 11:40 AM, Meikel Brandmeyer wrote: > > I believe the Vim indentation for Lisp works quite similar to the > emacs one. The basic heuristic - as I understood it - is: > > 1. Only one word after the opening paren in previous line: align with > innermost unmatched ( + 2 spaces > (bar > | <- cursor below a > 2. There are more than one word after the opening paren, but the form > is a macro/special form with a body (eg. do, try, catch, let, def*, > with-*, binding, etc., also: if, condp, ...): align with innermost > unmatched ( + 2 spaces > (let [xxx yyy] > | <- cursor below e > This is a bit fuzzy, but you should get the idea, what is meant. > 3. There are more than one word after the opening paren, but not a one > of the cases of 2.: align below first argument of innermost unmatched > (. > (foo bar > | <- cursor below b > 4. Inside vectors, maps and sets: align with innermost unmatched [/ > { + 1 space > [bar > | <- cursor below b > > This is roughly how VimClojure indents the code. > > Sincerely > Meikel
-- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en