vimclojure / indent / clojure.vim

The default branch has multiple heads

" Vim indent file
" Language:      Clojure
" Maintainer:    Meikel Brandmeyer <>
" Last Change:   2008 Jun 21

" Only load this indent file when no other was loaded.
if exists("b:did_indent")
let b:did_indent = 1

let b:undo_indent = "setlocal ai< si< lisp< lw< et<"
setlocal autoindent lisp expandtab nosmartindent

" Defintions:
setlocal lispwords=def,defn,defmacro,defmethod,let,fn,binding

" Conditionals and Loops:
setlocal lispwords+=if,when,when-not,when-first,cond,loop,dotimes,for

" Blocks:
setlocal lispwords+=do,doto,try,catch,locking,with-out-str,with-open
setlocal lispwords+=dosync,with-local-vars,doseq
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.