「scrollwheelup/down」對應在 Windows 作業系統上的 gvim 中不起作用嗎?

「scrollwheelup/down」對應在 Windows 作業系統上的 gvim 中不起作用嗎?

我嘗試了所有方法讓滑鼠按鈕 ScollWheelUp/Down 在我的 vim 中工作。

檢查所有其他插件是否有衝突的地圖,沒有衝突的地圖。嘗試過這個:

:verbose map <ScrollWheelUp> --> No mapping found
:verbose map <ScrollWheelDown> --> No mapping found

但後來我嘗試了一下,什麼事也沒發生:

noremap <ScrollWheelUp>   :echo "scrollup"<CR>
noremap <ScrollWheelDown> :echo "scrolldown"<CR>

與這些地圖相同

會不會是windows的問題?
當我在 vim 中滾動滑鼠時,頁面會滾動 3 行,就像作業系統上的所有其他應用程式一樣。

答案1

不幸的是,它們不能在 Windows 中運作。:help scroll-mouse-wheel特別提到它們適用於 X11 GUI:

For the X11 GUIs (Motif, Athena and GTK) scrolling the wheel generates key
presses <ScrollWheelUp>, <ScrollWheelDown>, <ScrollWheelLeft> and
<ScrollWheelRight>.

相關內容