summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2017-10-29 00:43:38 -0400
committerJesse Luehrs <doy@tozt.net>2017-10-29 02:01:52 -0400
commit34d83456f8c76ecdce5eb53abe6764c5ae061d64 (patch)
treea209893a0ba78ac3fa36c66c8a1fdb358079b798 /vimrc
parent88be99a05bc0143f62ef471ac2f6a5bd68d2f70c (diff)
downloadconf-34d83456f8c76ecdce5eb53abe6764c5ae061d64.tar.gz
conf-34d83456f8c76ecdce5eb53abe6764c5ae061d64.zip
fix help function visual mode
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc3
1 files changed, 1 insertions, 2 deletions
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