From b39b957b700e98035dd8aa7608feab71d6181c95 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 29 Sep 2020 01:08:31 +0200 Subject: Change v_gG and o_gG to mappings Fix visual mode bug where when the cursor is at the top of a visual selection, pressing `gG` changes the bottom of the visual selection instead of the top. --- plugin/grappele.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin') diff --git a/plugin/grappele.vim b/plugin/grappele.vim index 21c5cc7..f85b2b4 100644 --- a/plugin/grappele.vim +++ b/plugin/grappele.vim @@ -5,8 +5,8 @@ let g:loaded_grappele = 1 nnoremap Grappele grappele#Grappele(v:count, 'n') -nnoremap GrappeleRecall :call grappele#Recall('n') -vnoremap GrappeleRecall :call grappele#Recall('v') +nnoremap GrappeleRecall grappele#Recall('n') +vnoremap GrappeleRecall grappele#Recall('v') onoremap GrappeleRecall grappele#ORecall() if !hasmapto('Grappele') || !maparg('G', 'n') -- cgit v1.2.3