尝试将此添加到您的vimrc中:
   map <ScrollWheelUp> <C-Y>
   map <ScrollWheelDown> <C-E>
PS最好的解决方案是:不要使用那个鼠标滚轮......
相关信息见:help scroll-mouse-wheel:
Run Code Online (Sandbox Code Playgroud)For the Win32 GUI the scroll action is hard coded. It works just like dragging the scrollbar of the current window. How many lines are scrolled depends on your mouse driver. If the scroll action causes input focus problems, see intellimouse-wheel-problems. For the X11 GUIs (Motif, Athena and GTK) scrolling the wheel generates key presses <ScrollWheelUp>, <ScrollWheelDown>, <ScrollWheelLeft> and <ScrollWheelRight>.
所以,如果你在Windows上,你只能通过你的驱动程序全局影响它,而在X上,你可以做到
:map <ScrollWheelUp> <C-Y>
等等
| 归档时间: | 
 | 
| 查看次数: | 1332 次 | 
| 最近记录: |