summaryrefslogtreecommitdiffstats
path: root/indent/clojure.vim
diff options
context:
space:
mode:
Diffstat (limited to 'indent/clojure.vim')
-rw-r--r--indent/clojure.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/indent/clojure.vim b/indent/clojure.vim
index 41201252..fd9ebb69 100644
--- a/indent/clojure.vim
+++ b/indent/clojure.vim
@@ -53,6 +53,10 @@ if exists("*searchpairpos")
let g:clojure_align_multiline_strings = 0
endif
+ if !exists('g:clojure_align_subforms')
+ let g:clojure_align_subforms = 0
+ endif
+
function! s:SynIdName()
return synIDattr(synID(line("."), col("."), 0), "name")
endfunction
@@ -284,7 +288,7 @@ if exists("*searchpairpos")
call search('\v\_s', 'cW')
call search('\v\S', 'W')
if paren[0] < line(".")
- return paren[1] + &shiftwidth - 1
+ return paren[1] + (g:clojure_align_subforms ? 0 : &shiftwidth - 1)
endif
call search('\v\S', 'bW')