From 93ef4c9e42cd6da4e37a935c4799dcf8e24af9b1 Mon Sep 17 00:00:00 2001 From: Tom McDonald Date: Sat, 1 Aug 2015 15:45:53 -0400 Subject: [PATCH] Enable automatic reindenting by default --- plugin/exchange.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/exchange.vim b/plugin/exchange.vim index e39bb5a..762b189 100644 --- a/plugin/exchange.vim +++ b/plugin/exchange.vim @@ -8,7 +8,7 @@ function! s:exchange(x, y, reverse, expand) let selection = &selection set selection=inclusive - let indent = s:get_setting('exchange_indent', 0) != 0 && a:x.type ==# 'V' && a:y.type ==# 'V' + let indent = s:get_setting('exchange_indent', 1) != 0 && a:x.type ==# 'V' && a:y.type ==# 'V' if indent let xindent = matchstr(getline(nextnonblank(a:y.start.line)), '^\s*') @@ -66,7 +66,7 @@ function! s:fix_cursor(x, y, reverse) endfunction function! s:reindent(start, lines, new_indent) - if s:get_setting('exchange_indent', 0) == '==' + if s:get_setting('exchange_indent', 1) == '==' let lnum = nextnonblank(a:start) let line = getline(lnum) execute "silent normal! " . lnum . "G=="