From 560239bbd9afb7dbf7ce846160bd687b1cfda03f Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 29 Sep 2020 01:51:35 +0200 Subject: plugin/grappele.vim: Add mode to `hasmapto()` call Since these `` mappings are mode-specific, ensure we specify the mode in the `hasmapto()` call. --- plugin/grappele.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/grappele.vim b/plugin/grappele.vim index fe531af..be001ea 100644 --- a/plugin/grappele.vim +++ b/plugin/grappele.vim @@ -20,14 +20,14 @@ if !maparg('G', 'o') onoremap G grappele#Grappele(v:count) endif -if !hasmapto('GrappeleRecall') || !maparg('gG', 'n') +if !hasmapto('GrappeleRecall', 'n') || !maparg('gG', 'n') nmap gG GrappeleRecall endif -if !hasmapto('GrappeleRecall') || !maparg('gG', 'v') +if !hasmapto('GrappeleRecall', 'v') || !maparg('gG', 'v') vmap gG GrappeleRecall endif -if !hasmapto('GrappeleRecall') || !maparg('gG', 'o') +if !hasmapto('GrappeleRecall', 'o') || !maparg('gG', 'o') omap gG GrappeleRecall endif -- cgit v1.2.3