diff --git a/plugin/exchange.vim b/plugin/exchange.vim index bd3656b..f2141cd 100644 --- a/plugin/exchange.vim +++ b/plugin/exchange.vim @@ -326,10 +326,10 @@ endfunction highlight default link ExchangeRegion IncSearch -nnoremap (Exchange) ':set operatorfunc=exchange_set'.v:count1.'g@' +nnoremap (Exchange) ':set operatorfunc=exchange_set'.(v:count1 == 1 ? '' : v:count1).'g@' vnoremap (Exchange) :call exchange_set(visualmode(), 1) nnoremap (ExchangeClear) :call exchange_clear() -nnoremap (ExchangeLine) ':set operatorfunc=exchange_set'.v:count1.'g@_' +nnoremap (ExchangeLine) ':set operatorfunc=exchange_set'.(v:count1 == 1 ? '' : v:count1).'g@_' command! XchangeHighlightToggle call s:highlight_toggle() command! XchangeHighlightEnable call s:highlight_toggle(1)