From 3ff60a7b6e6b3cc711fae68f49f221dc66fb25ab Mon Sep 17 00:00:00 2001 From: Jacob Niehus Date: Sun, 11 Jan 2015 11:49:13 -0700 Subject: [PATCH] Add tpope/vim-repeat compatibility --- plugin/exchange.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/exchange.vim b/plugin/exchange.vim index 9d5e11d..4b659be 100644 --- a/plugin/exchange.vim +++ b/plugin/exchange.vim @@ -71,6 +71,8 @@ function! s:exchange_set(type, ...) if !exists('b:exchange') let b:exchange = s:exchange_get(a:type, a:0) let b:exchange_matches = s:highlight(b:exchange) + " Tell tpope/vim-repeat that '.' should repeat the Exchange motion + silent! call repeat#invalidate() else let exchange1 = b:exchange let exchange2 = s:exchange_get(a:type, a:0)