aboutsummaryrefslogtreecommitdiff
path: root/plugin/replace_operator.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/replace_operator.vim')
-rw-r--r--plugin/replace_operator.vim14
1 files changed, 6 insertions, 8 deletions
diff --git a/plugin/replace_operator.vim b/plugin/replace_operator.vim
index a5c4a95..982b573 100644
--- a/plugin/replace_operator.vim
+++ b/plugin/replace_operator.vim
@@ -1,6 +1,6 @@
"
-" replace_operator.vim: Replace text selected with a motion with the
-" contents of a register in a repeatable way.
+" replace_operator.vim: Replace text selected with a motion with the contents
+" of a register in a repeatable way.
"
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
@@ -14,9 +14,7 @@ endif
let g:loaded_replace_operator = 1
" Set up mapping
-nnoremap <silent> <unique>
- \ <Plug>(ReplaceOperator)
- \ :<C-U>call replace_operator#MapNormal(v:register)<CR>g@
-xnoremap <silent> <unique>
- \ <Plug>(ReplaceOperator)
- \ :<C-U>call replace_operator#MapVisual(v:register, visualmode())<CR>
+nnoremap <expr> <Plug>(ReplaceOperator)
+ \ replace_operator#Map()
+xnoremap <expr> <Plug>(ReplaceOperator)
+ \ replace_operator#Map()