Indentation of docstrings
Raynes opened this issue · 2 comments
This has always bugged the crap out of me. With vim-clojure-static (and old vimclojure), docstrings with multiple lines get indented like this:
(defn to-booleany
"Convert numbers and various representations of 'true' and 'false'
to their actual true or false counterparts."
[s]
...)Whereas in Emacs, it gets indented like this:
(defn to-booleany
"Convert numbers and various representations of 'true' and 'false'
to their actual true or false counterparts."
...)I recall bringing this up with Meikel at some point, but don't remember why it was never changed.
I just wanted to bring this up to get your thoughts on it, because I much prefer the way Emacs does things, and working with Emacs coworkers I'd really love it if it didn't get changed every time I =a( their code that I'm editing. It'd be nice if it were at least an option or something.
This has always bugged the crap out of me.
Totally agree.
https://github.com/guns/vim-clojure-static#gclojure_align_multiline_strings
let g:clojure_align_multiline_strings = 1It's off by default because Meikel presumably likes it that way :)
I plan on rewriting the indent script in the near future and hope to respect indentation within strings so that code examples stay indented relative to the virtual first column.
Bah, how did I never see that? Thanks!