diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2013-12-26 03:34:22 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2013-12-26 03:34:22 +0100 |
commit | a26bebbeb94207698d20f43485098ead64bb6c67 (patch) | |
tree | ac829c223694513dfc9b90c592001d2ea31d07d4 /indent/clojure.vim | |
parent | edd5ee63e66d9ef166034d9ac5bed132f501ecb9 (diff) | |
download | vim-polyglot-a26bebbeb94207698d20f43485098ead64bb6c67.tar.gz vim-polyglot-a26bebbeb94207698d20f43485098ead64bb6c67.zip |
Update
Diffstat (limited to 'indent/clojure.vim')
-rw-r--r-- | indent/clojure.vim | 6 |
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') |