Use b:exchange_indent if present

This commit is contained in:
Jacob Niehus 2015-06-12 13:12:24 -07:00
parent 3b4b4b38ab
commit 8bd96c3e0d

View File

@ -52,7 +52,7 @@ function! s:exchange(x, y, reverse, expand)
endfunction endfunction
function! s:reindent(start, lines, new_indent) 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 lnum = nextnonblank(a:start)
let line = getline(lnum) let line = getline(lnum)
execute "silent normal! " . lnum . "G==" execute "silent normal! " . lnum . "G=="