Originally Published: Friday, 23 February 2001 Author: Marius Aamodt Eriksen
Published to: tuneup_tips/Tips Page: 1/1 - [Std View]

Getting VIM to Use Your Mouse Wheel

If you are using xterm, and have vim, as well as a wheel mouse, you should be able to use your wheelmouse to scroll in vim. You will need to add the following to your ~/.Xdefaults or wherever you keep your X resources :
XTerm*VT100.Translations:       #override \n\
<Btn4Down>: string("0x9b") string("[64~") \n\
<Btn5Down>: string("0x9b") string("[65~")