diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-01 21:40:54 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-01 21:40:54 +1200 |
commit | 61433b46cdbc7efcba5bc429a50752030ca54479 (patch) | |
tree | 913c30b7cec3342f925856426d8454ea0a75d3c0 /plugin | |
parent | Merge branch 'release/v1.1.0' (diff) | |
parent | Bump VERSION (diff) | |
download | vim-replace-operator-master.tar.gz vim-replace-operator-master.zip |
* release/v1.2.0:
Abbreviate load guard
Adjust name of autoloaded interface function
Adjust quoting for legibility
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/replace_operator.vim | 9 |
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) |