aboutsummaryrefslogtreecommitdiff
path: root/plugin/replace_operator.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-23 12:19:25 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-23 12:19:25 +1200
commite9a8c8e95796805556c743de06045380d58b7178 (patch)
tree55b89bf58a66aebdca170d580f8184ad77f07102 /plugin/replace_operator.vim
parentFirst version (diff)
downloadvim-replace-operator-e9a8c8e95796805556c743de06045380d58b7178.tar.gz
vim-replace-operator-e9a8c8e95796805556c743de06045380d58b7178.zip
Overhaul completely
Diffstat (limited to 'plugin/replace_operator.vim')
-rw-r--r--plugin/replace_operator.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/replace_operator.vim b/plugin/replace_operator.vim
index 3e048d8..a5c4a95 100644
--- a/plugin/replace_operator.vim
+++ b/plugin/replace_operator.vim
@@ -16,7 +16,7 @@ let g:loaded_replace_operator = 1
" Set up mapping
nnoremap <silent> <unique>
\ <Plug>(ReplaceOperator)
- \ :<C-U>set operatorfunc=replace_operator#Operatorfunc<CR>g@
+ \ :<C-U>call replace_operator#MapNormal(v:register)<CR>g@
xnoremap <silent> <unique>
\ <Plug>(ReplaceOperator)
- \ :<C-U>call replace_operator#Operatorfunc(visualmode())<CR>
+ \ :<C-U>call replace_operator#MapVisual(v:register, visualmode())<CR>