[vim/vim] Request: Choose which mouse abilities are active (#4454)

9 views
Skip to first unread message

James P. Harvey

unread,
May 30, 2019, 7:31:55 AM5/30/19
to vim/vim, Subscribed

mouse support allows:

  • Left click in a text buffer to place cursor there, including selecting a buffer or tab, also works with operators.
  • Drag status-line or vertical separator of a window to resize it.
  • If enabled for visual mode, double, triple, and quadruple click selects word, line, and block.
  • Scrolling.

I think it would be a great feature to be able to choose which mouse abilities are active.

I'm sure some love moving the cursor with the mouse, but personally, I don't want it to do that. i dislike moving the cursor with the mouse so much, that I keep mouse off entirely.

I wish I could enable only selecting with the mouse which buffer/tab is active, resizing, and scrolling.

I am using vim through a terminal. I was first excited to see an option named mousefocus, but that doesn't do what I'm talking about, and only works in the GUI. (I think that activates the window the mouse is under without even being clicked.)

It looks like someone else was wanting what I'm asking for here: https://superuser.com/questions/495652/vim-enable-mouse-scroll-only-not-cursor-positioning

Heptite answered that you can <nop> the left mouse button and double clicks. But, the poster asked if there was a way to leave moving cursor position disabled, but still allow window/tab selection. Heptite said he couldn't think of a way to do that.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub

viplo

unread,
11:28 AM (10 hours ago) 11:28 AM
to vim/vim, Subscribed
viplo left a comment (vim/vim#4454)

Yes mouse capture s**ks, I had to disable mouse capture in a ~/.vimrc with set mouse= in it and if I need mouse in vim reactivate in file I need with :set mouse=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.Message ID: <vim/vim/issues/4454/5093284806@github.com>

Reply all
Reply to author
Forward
0 new messages