From 8bd96c3e0d714673b6ead6812c61ae7ac0ae12cf Mon Sep 17 00:00:00 2001 From: Jacob Niehus Date: Fri, 12 Jun 2015 13:12:24 -0700 Subject: [PATCH] Use b:exchange_indent if present --- plugin/exchange.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/exchange.vim b/plugin/exchange.vim index 2265383..cc08815 100644 --- a/plugin/exchange.vim +++ b/plugin/exchange.vim @@ -52,7 +52,7 @@ function! s:exchange(x, y, reverse, expand) endfunction function! s:reindent(start, lines, new_indent) - if g:exchange_indent == '==' + if (exists('b:exchange_indent') ? b:exchange_indent : g:exchange_indent) == '==' let lnum = nextnonblank(a:start) let line = getline(lnum) execute "silent normal! " . lnum . "G=="