Vim-cljfmt is a vim plugin for cljfmt, a Clojure formatting tool.
Install cljfmt
:
$ go get github.com/cespare/goclj/cljfmt
Install vim-cljfmt with your method of choice.
:CljFmt
Run the current buffer through cljfmt.
g:cljfmt_on_save
controls whether cljfmt automatically calls:CljFmt
when saving a .clj, .cljs, .cljc, or .edn buffer. This is set to 1 by default.