From 7d14f43244a0f26333549b2442042ccaf2761138 Mon Sep 17 00:00:00 2001 From: Tom McDonald Date: Sat, 11 Jun 2016 10:35:46 -0400 Subject: [PATCH] Support [count] before operator Fixes #41 --- plugin/exchange.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/exchange.vim b/plugin/exchange.vim index 5d3483c..c37341b 100644 --- a/plugin/exchange.vim +++ b/plugin/exchange.vim @@ -326,10 +326,10 @@ endfunction highlight default link ExchangeRegion IncSearch -nnoremap (Exchange) :set operatorfunc=exchange_setg@ +nnoremap (Exchange) ':set operatorfunc=exchange_set'.v:count1.'g@' vnoremap (Exchange) :call exchange_set(visualmode(), 1) nnoremap (ExchangeClear) :call exchange_clear() -nnoremap (ExchangeLine) :set operatorfunc=exchange_setg@_ +nnoremap (ExchangeLine) ':set operatorfunc=exchange_set'.v:count1.'g@_' command! XchangeHighlightToggle call s:highlight_toggle() command! XchangeHighlightEnable call s:highlight_toggle(1)