OhmNomNom / thyme

A fork of mintty, for the modern world
GNU General Public License v3.0
0 stars 0 forks source link

Add vim buffer scrolling using the mouse scroll wheel. #199

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently vim works with mouse operations, selecting text in visual mode, 
resizing split windows. The only mouse operation that does not seem to work is 
scrolling a buffer using the mouse's scroll wheel.

NOTE: for vim to use mouse operations you must set the following either on the 
command line or in your .vimrc:

:set mouse=a 

Original issue reported on code.google.com by dbu...@gmail.com on 13 Jul 2010 at 5:25

GoogleCodeExporter commented 9 years ago
This is supported already, and it works for me, but unfortunately there's an 
issue with some mouse drivers, in particular touchpad ones, that stops it from 
working. When those drivers see that a window has an inactive scrollbar, such 
as you get when vim switches to the alternate screen, they don't bother 
delivering mousewheel events to the window, so mintty never gets to know about 
them.

The workaround for this is to disable the scrollbar, either permanently on the 
'Window' pane of the options, or temporarily by sticking the following into 
.vimrc:

let &t_ti.="\e[?30l"
let &t_te.="\e[?30h"

Original comment by andy.koppe on 13 Jul 2010 at 7:10

GoogleCodeExporter commented 9 years ago

Original comment by andy.koppe on 18 Jul 2010 at 5:09