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.vim9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugin/replace_operator.vim b/plugin/replace_operator.vim
index 2fc935c..ea5f3b1 100644
--- a/plugin/replace_operator.vim
+++ b/plugin/replace_operator.vim
@@ -5,16 +5,13 @@
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('loaded_replace_operator') || &compatible
- finish
-endif
-if v:version < 700
+if exists('loaded_replace_operator') || &compatible || v:version < 700
finish
endif
let loaded_replace_operator = 1
" Set up mapping
nnoremap <expr> <Plug>(ReplaceOperator)
- \ replace_operator#Map(v:register)
+ \ replace_operator#(v:register)
xnoremap <expr> <Plug>(ReplaceOperator)
- \ replace_operator#Map(v:register)
+ \ replace_operator#(v:register)