diff options
author | Teddy Wing | 2020-09-29 01:51:35 +0200 |
---|---|---|
committer | Teddy Wing | 2020-09-29 01:51:35 +0200 |
commit | 560239bbd9afb7dbf7ce846160bd687b1cfda03f (patch) | |
tree | e931f72c21ad32926fe71a3971c02997af4085d4 | |
parent | 8126766ab7a37961096ff9edf69feed15d9f3b65 (diff) | |
download | vim-grappele-560239bbd9afb7dbf7ce846160bd687b1cfda03f.tar.bz2 |
plugin/grappele.vim: Add mode to `hasmapto()` callfix-omap
Since these `<Plug>` mappings are mode-specific, ensure we specify the
mode in the `hasmapto()` call.
-rw-r--r-- | plugin/grappele.vim | 6 |
1 files 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 <silent> <expr> G grappele#Grappele(v:count) endif -if !hasmapto('<Plug>GrappeleRecall') || !maparg('gG', 'n') +if !hasmapto('<Plug>GrappeleRecall', 'n') || !maparg('gG', 'n') nmap gG <Plug>GrappeleRecall endif -if !hasmapto('<Plug>GrappeleRecall') || !maparg('gG', 'v') +if !hasmapto('<Plug>GrappeleRecall', 'v') || !maparg('gG', 'v') vmap gG <Plug>GrappeleRecall endif -if !hasmapto('<Plug>GrappeleRecall') || !maparg('gG', 'o') +if !hasmapto('<Plug>GrappeleRecall', 'o') || !maparg('gG', 'o') omap gG <Plug>GrappeleRecall endif |