Add tpope/vim-repeat compatibility

This commit is contained in:
Jacob Niehus 2015-01-11 11:49:13 -07:00
parent 4da8b67383
commit 3ff60a7b6e

View File

@ -71,6 +71,8 @@ function! s:exchange_set(type, ...)
if !exists('b:exchange') if !exists('b:exchange')
let b:exchange = s:exchange_get(a:type, a:0) let b:exchange = s:exchange_get(a:type, a:0)
let b:exchange_matches = s:highlight(b:exchange) let b:exchange_matches = s:highlight(b:exchange)
" Tell tpope/vim-repeat that '.' should repeat the Exchange motion
silent! call repeat#invalidate()
else else
let exchange1 = b:exchange let exchange1 = b:exchange
let exchange2 = s:exchange_get(a:type, a:0) let exchange2 = s:exchange_get(a:type, a:0)