How Do I Make Opencode STOP messing with vim mouse mode? #4041

Open
opened 2026-02-16 17:42:23 -05:00 by yindo · 0 comments
Owner

Originally created by @aaronnewsome on GitHub (Dec 31, 2025).

Originally assigned to: @kommander on GitHub.

Question

In my vimrc, I have the mouse to "", which makes my mouse work normally in vim. This means when I click in the window, my cursor stays exactly where it is. When I highlight text, nothing happens and vim doesn't switch into "VISUAL" mode, which means I can use the OS copy and paste commands. However, when launching the vim editor inside opencode, it ignores my mouse settings, which means clicking in the window moves the mouse. Highlighting text switches vim into visual mode - BLOCKING the OS copy key combination.

How do I stop this behavior?

Originally created by @aaronnewsome on GitHub (Dec 31, 2025). Originally assigned to: @kommander on GitHub. ### Question In my vimrc, I have the mouse to "", which makes my mouse work normally in vim. This means when I click in the window, my cursor stays exactly where it is. When I highlight text, nothing happens and vim doesn't switch into "VISUAL" mode, which means I can use the OS copy and paste commands. However, when launching the vim editor inside opencode, it ignores my mouse settings, which means clicking in the window moves the mouse. Highlighting text switches vim into visual mode - BLOCKING the OS copy key combination. How do I stop this behavior?
yindo added the opentui label 2026-02-16 17:42:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4041