hlyank have guard for clipboard of autoselect with star register.
# if clipboard has autoselect (default on linux) exiting from Visual with # ESC generates bogus event and this highlights previous yank if &clipboard =~ 'autoselect' && v:event.regname == "*" && v:event.visual return endif
but omitte the 'guioptions' P.
'P' Like autoselect but only copy to the "+ register instead of
the "* register.
when set guioptions+=P hlyank whill be got odd. like this video
https://github.com/user-attachments/assets/e5a01cf5-8d22-4513-ab4a-a14b1e7289e5
because when set guioptions+=P autoselect will be to use '+' regiser, that can be bypass hlyank guard.
not hightlight on autoselect.
9.2.803
Linux debian 7.1.3+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 7.1.3-1 (2026-07-04) x86_64 GNU/Linux
gvim and kitty 0.47.4
xterm-kitty
bash 5.3.9
N/A
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Would the solution be to check for the 'P' flag in 'guioptions' in the guard?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Would the solution be to check for the 'P' flag in 'guioptions' in the guard?解决办法是不是在守护的“guioptions”里检查'P'标志?
Maybe? but if we check them in the guard, we won't be able to use the hlyank plugin.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Would the solution be to check for the 'P' flag in 'guioptions' in the guard?解决办法是不是在守护的“guioptions”里检查'P'标志?
Maybe? but if we check them in the guard, we won't be able to use the hlyank plugin.
Would this maybe work (added below the existing guard):
if &clipboard =~ 'P' && has('gui_running') && v:event.regname == "*" && v:event.visual return endif
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Would this maybe work (added below the existing guard):这样或许可行(添加在现有守卫之后):
if &clipboard =~ 'P' && has('gui_running') && v:event.regname == "*" && v:event.visual
return
endif
'P' is not in the &clipboard.
https://github.com/user-attachments/assets/6d9e80f2-01e6-4182-9452-2c58565f08a8
You might want to say this?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Would this maybe work (added below the existing guard):这样或许可行(添加在现有守卫之后):
if &clipboard =~ 'P' && has('gui_running') && v:event.regname == "*" && v:event.visual
return
endif'P' is not in the &clipboard.
2026-07-20.11-09-14.mp4
You might want to say this?
if &guioptions =~ 'P' && has('gui_running') && v:event.regname == "*" && v:event.visual
return
endif
Yes
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
the code can work, just no have anything highlight on selection region if set guioptions+=P.
if &guioptions =~ 'P' && has('gui_running') && v:event.regname == "+" && v:event.visual return endif
However, I think the underlying reason for this problem is that Vim doesn't update the visual block created by the mouse kselected text to the '['] mark.
https://github.com/user-attachments/assets/43583139-5d03-493e-903a-c1ded5273ef5
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
However, I think the underlying reason for this problem is that Vim doesn't update the visual block created by the mouse kselected text to the '['] mark.
That sounds like a different issue.
So is this issue fixed using that code?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
That sounds like a different issue. So is this issue fixed using that code?
This feels more like a temp fix, and I’m not sure it’s the best way to go. I’m still on the fence.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()