aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/grappele.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/grappele.vim')
-rw-r--r--plugin/grappele.vim13
1 files changed, 11 insertions, 2 deletions
diff --git a/plugin/grappele.vim b/plugin/grappele.vim
index a0f0aa2..9ab1400 100644
--- a/plugin/grappele.vim
+++ b/plugin/grappele.vim
@@ -4,13 +4,22 @@ endif
let g:loaded_grappele = 1
-nnoremap <silent> <Plug>Grappele :<c-u>call grappele#Grappele(v:count)<cr>
+nnoremap <silent> <Plug>Grappele :<c-u>call grappele#Grappele(v:count, 'n')<cr>
nnoremap <silent> <Plug>GrappeleRecall :<c-u>call grappele#Recall('n')<cr>
vnoremap <silent> <Plug>GrappeleRecall :<c-u>call grappele#Recall('v')<cr>
onoremap <silent> <Plug>GrappeleRecall :<c-u>call grappele#Recall('o')<cr>
if !hasmapto('<Plug>Grappele') || !maparg('G', 'n')
- nnoremap <silent> G :<c-u>call grappele#Grappele(v:count)<cr>
+ nnoremap <silent> G :<c-u>call grappele#Grappele(v:count, 'n')<cr>
+endif
+
+if !hasmapto('<Plug>Grappele') || !maparg('G', 'v')
+ vnoremap <silent> G
+ \ :<c-u>call grappele#Grappele(v:count, 'v', visualmode())<cr>
+endif
+
+if !hasmapto('<Plug>Grappele') || !maparg('G', 'o')
+ onoremap <silent> G :<c-u>call grappele#Grappele(v:count, 'o')<cr>
endif
if !hasmapto('<Plug>GrappeleRecall') || !maparg('gG', 'n')