[vim/vim] Rotating mouse wheel moves cursor when mouse= (Issue #16905)

10 views
Skip to first unread message

Daniel Steinberg

unread,
Mar 16, 2025, 1:16:51 PMMar 16
to vim/vim, Subscribed

Steps to reproduce

vim --clean
:set mouse=
:help builtin.txt
" Rotate the mouse wheel down

Expected behaviour

I expected that with mouse=, Vim would ignore mouse wheel events.

Rather, the cursor moves in the direction that the mouse wheel is rotated.

Version of Vim

9.1 (included patches: 1-16, 647, 678, 697)

Environment

Operating system: Kubuntu 24.04
Terminal: Konsole 23.08.5
Value of $TERM: xterm-256color
Shell: GNU bash 5.2.21(1)-release


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/16905@github.com>

dstein64dstein64 created an issue (vim/vim#16905)

Steps to reproduce

vim --clean
:set mouse=
:help builtin.txt
" Rotate the mouse wheel down

Expected behaviour

I expected that with mouse=, Vim would ignore mouse wheel events.

Rather, the cursor moves in the direction that the mouse wheel is rotated.

Version of Vim

9.1 (included patches: 1-16, 647, 678, 697)

Environment

Operating system: Kubuntu 24.04
Terminal: Konsole 23.08.5
Value of $TERM: xterm-256color
Shell: GNU bash 5.2.21(1)-release


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/16905@github.com>

Gary Johnson

unread,
Mar 16, 2025, 3:22:38 PMMar 16
to reply+ACY5DGBFJVHVG25DPP...@reply.github.com, vim...@googlegroups.com
On 2025-03-16, Daniel Steinberg (Vim Github Repository) wrote:
> Steps to reproduce
>
> vim --clean
> :set mouse=
> :help builtin.txt
> " Rotate the mouse wheel down
>
> Expected behaviour
>
> I expected that with mouse=, Vim would ignore mouse wheel events.
>
> Rather, the cursor moves in the direction that the mouse wheel is rotated.
>
> Version of Vim
>
> 9.1 (included patches: 1-16, 647, 678, 697)
>
> Environment
>
> Operating system: Kubuntu 24.04
> Terminal: Konsole 23.08.5
> Value of $TERM: xterm-256color
> Shell: GNU bash 5.2.21(1)-release

These are not mouse wheel events but keyboard events. They are
generated by your terminal emulator.

To see this, with Vim configured as above, enter insert mode and
type Ctrl-K followed by a rotation of your mouse wheel. You should
see <Up> or <Down> for each click of the mouse wheel. Those
correspond to your keyboard's up and down arrows. Type Ctrl-K and
either the up-arrow or down-arrow key and you'll see the same <Up>
or <Down>. You'll need to type Ctrl-K before each mouse click and
key press.

Regards,
Gary

vim-dev ML

unread,
Mar 16, 2025, 3:23:09 PMMar 16
to vim/vim, vim-dev ML, Your activity
On 2025-03-16, Daniel Steinberg (Vim Github Repository) wrote:<br> &gt; Steps to reproduce<br> &gt; <br> &gt; vim --clean<br> &gt; :set mouse=<br> &gt; :help builtin.txt<br> &gt; &quot; Rotate the mouse wheel down<br> &gt; <br> &gt; Expected behaviour<br> &gt; <br> &gt; I expected that with mouse=, Vim would ignore mouse wheel events.<br> &gt; <br> &gt; Rather, the cursor moves in the direction that the mouse wheel is rotated.<br> &gt; <br> &gt; Version of Vim<br> &gt; <br> &gt; 9.1 (included patches: 1-16, 647, 678, 697)<br> &gt; <br> &gt; Environment<br> &gt; <br> &gt; Operating system: Kubuntu 24.04<br> &gt; Terminal: Konsole 23.08.5<br> &gt; Value of $TERM: xterm-256color<br> &gt; Shell: GNU bash 5.2.21(1)-release<br> <br> These are not mouse wheel events but keyboard events. They are<br> generated by your terminal emulator.<br> <br> To see this, with Vim configured as above, enter insert mode and<br> type Ctrl-K followed by a rotation of your mouse wheel. You should<br> see &lt;Up&gt; or &lt;Down&gt; for each click of the mouse wheel. Those<br> correspond to your keyboard&#39;s up and down arrows. Type Ctrl-K and<br> either the up-arrow or down-arrow key and you&#39;ll see the same &lt;Up&gt;<br> or &lt;Down&gt;. You&#39;ll need to type Ctrl-K before each mouse click and<br> key press.<br> <br> Regards,<br> Gary<br> <br>


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/16905/2727606027@github.com>

vim-mlvim-ml left a comment (vim/vim#16905)
On 2025-03-16, Daniel Steinberg (Vim Github Repository) wrote:<br> &gt; Steps to reproduce<br> &gt; <br> &gt; vim --clean<br> &gt; :set mouse=<br> &gt; :help builtin.txt<br> &gt; &quot; Rotate the mouse wheel down<br> &gt; <br> &gt; Expected behaviour<br> &gt; <br> &gt; I expected that with mouse=, Vim would ignore mouse wheel events.<br> &gt; <br> &gt; Rather, the cursor moves in the direction that the mouse wheel is rotated.<br> &gt; <br> &gt; Version of Vim<br> &gt; <br> &gt; 9.1 (included patches: 1-16, 647, 678, 697)<br> &gt; <br> &gt; Environment<br> &gt; <br> &gt; Operating system: Kubuntu 24.04<br> &gt; Terminal: Konsole 23.08.5<br> &gt; Value of $TERM: xterm-256color<br> &gt; Shell: GNU bash 5.2.21(1)-release<br> <br> These are not mouse wheel events but keyboard events. They are<br> generated by your terminal emulator.<br> <br> To see this, with Vim configured as above, enter insert mode and<br> type Ctrl-K followed by a rotation of your mouse wheel. You should<br> see &lt;Up&gt; or &lt;Down&gt; for each click of the mouse wheel. Those<br> correspond to your keyboard&#39;s up and down arrows. Type Ctrl-K and<br> either the up-arrow or down-arrow key and you&#39;ll see the same &lt;Up&gt;<br> or &lt;Down&gt;. You&#39;ll need to type Ctrl-K before each mouse click and<br> key press.<br> <br> Regards,<br> Gary<br> <br>


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/16905/2727606027@github.com>

Daniel Steinberg

unread,
Mar 16, 2025, 5:04:29 PMMar 16
to vim/vim, vim-dev ML, Comment

Closed #16905 as completed.


Reply to this email directly, view it on GitHub.

You are receiving this because you commented.Message ID: <vim/vim/issue/16905/issue_event/16792112331@github.com>

Daniel Steinberg

unread,
Mar 16, 2025, 5:04:29 PMMar 16
to vim/vim, vim-dev ML, Comment

Thanks Gary. I'll close this.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: <vim/vim/issues/16905/2727645974@github.com>

dstein64dstein64 left a comment (vim/vim#16905)

Thanks Gary. I'll close this.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: <vim/vim/issues/16905/2727645974@github.com>

Reply all
Reply to author
Forward
0 new messages