aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2020-09-29 01:18:33 +0200
committerTeddy Wing2020-09-29 01:33:54 +0200
commit145c155e419fdcc73129771d8fbb3c32a77295a8 (patch)
tree23a118de43ef697ccc2ffd82c057da76215d6cad
parent47a6ae90ca533f32576c88b21b988d92d33f865c (diff)
downloadvim-grappele-145c155e419fdcc73129771d8fbb3c32a77295a8.tar.bz2
plugin/grappele.vim: Remove `<Plug>Grappele` mapping
Since the plugin doesn't use this mapping any more due to the performance delay, let's remove it. Tells people that it shouldn't be used.
-rw-r--r--plugin/grappele.vim7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugin/grappele.vim b/plugin/grappele.vim
index 97b81e7..5b6a046 100644
--- a/plugin/grappele.vim
+++ b/plugin/grappele.vim
@@ -4,20 +4,19 @@ endif
let g:loaded_grappele = 1
-nnoremap <silent> <Plug>Grappele grappele#Grappele(v:count, 'n')
nnoremap <silent> <expr> <Plug>GrappeleRecall grappele#Recall('n')
vnoremap <silent> <expr> <Plug>GrappeleRecall grappele#Recall('v')
onoremap <silent> <expr> <Plug>GrappeleRecall grappele#ORecall()
-if !hasmapto('<Plug>Grappele') || !maparg('G', 'n')
+if !maparg('G', 'n')
nnoremap <silent> <expr> G grappele#Grappele(v:count)
endif
-if !hasmapto('<Plug>Grappele') || !maparg('G', 'v')
+if !maparg('G', 'v')
vnoremap <silent> <expr> G grappele#Grappele(v:count)
endif
-if !hasmapto('<Plug>Grappele') || !maparg('G', 'o')
+if !maparg('G', 'o')
onoremap <silent> <expr> G grappele#Grappele(v:count)
endif