aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-01 21:30:13 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-01 21:30:13 +1200
commitda74049d85c55b5eb31432382c9172cb33ff9a40 (patch)
treef76e40379f6d5262f9d4d7961c5d8331b4b215c3
parentMerge branch 'release/v1.0.0' into develop (diff)
downloadvim-regex-escape-da74049d85c55b5eb31432382c9172cb33ff9a40.tar.gz
vim-regex-escape-da74049d85c55b5eb31432382c9172cb33ff9a40.zip
Shorten interface function name
-rw-r--r--autoload/regex_escape.vim2
-rw-r--r--plugin/regex_escape.vim4
2 files changed, 3 insertions, 3 deletions
diff --git a/autoload/regex_escape.vim b/autoload/regex_escape.vim
index b57392a..3884374 100644
--- a/autoload/regex_escape.vim
+++ b/autoload/regex_escape.vim
@@ -62,7 +62,7 @@ endfunction
" Expression mapping target function; set the 'operatorfunc' and return the
" key sequence to active it
-function! regex_escape#Map() abort
+function! regex_escape#() abort
set operatorfunc=regex_escape#Operatorfunc
return 'g@'
endfunction
diff --git a/plugin/regex_escape.vim b/plugin/regex_escape.vim
index 5a44e51..c430bf6 100644
--- a/plugin/regex_escape.vim
+++ b/plugin/regex_escape.vim
@@ -19,6 +19,6 @@ let loaded_regex_escape = 1
" Set up mapping
nnoremap <expr> <Plug>(RegexEscape)
- \ regex_escape#Map()
+ \ regex_escape#()
xnoremap <expr> <Plug>(RegexEscape)
- \ regex_escape#Map()
+ \ regex_escape#()