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. --- autoload/grappele.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autoload') diff --git a/autoload/grappele.vim b/autoload/grappele.vim index c2257d8..423723b 100644 --- a/autoload/grappele.vim +++ b/autoload/grappele.vim @@ -14,7 +14,7 @@ function! grappele#Recall(mode) let l:line = visualmode() . l:line endif - execute 'normal! ' . l:line . 'G' + return l:line . 'G' endif endfunction -- cgit v1.2.3