From 34d83456f8c76ecdce5eb53abe6764c5ae061d64 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 29 Oct 2017 00:43:38 -0400 Subject: fix help function visual mode --- vimrc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 743f314..6f8d7e7 100644 --- a/vimrc +++ b/vimrc @@ -426,8 +426,7 @@ function! Help(visual, iskeyword, command) endfor if a:visual let l:oldreg = @a - " XXX this seems to not include the end of the selection - why? - normal! `<"ay`>gv + normal! gv"aygv let l:word = @a let @a = l:oldreg else -- cgit v1.2.3-54-g00ecf