yuttie / comfortable-motion.vim

Brings physics-based smooth scrolling to the Vim world!
MIT License
636 stars 19 forks source link

Mouse support? #15

Closed vitaly-zdanevich closed 7 years ago

yuttie commented 7 years ago

If your Vim/NeoVim has mouse support, you can get mouse wheel to scroll a window by the following settings:

noremap <silent> <ScrollWheelDown> :call comfortable_motion#flick(40)<CR>
noremap <silent> <ScrollWheelUp>   :call comfortable_motion#flick(-40)<CR>

You may need to enable the mouse option for the above to work, for example, by set mouse=a.

yuttie commented 7 years ago

@vitaly-zdanevich I've just added the above descriptions to README.md. Thanks for your question!