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=="