File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 1
- *scroll.txt* For Vim バージョン 9.0. Last change: 2022 May 07
1
+ *scroll.txt* For Vim バージョン 9.0. Last change: 2022 Oct 17
2
2
3
3
4
4
VIMリファレンスマニュアル by Bram Moolenaar
@@ -271,6 +271,17 @@ AltやCtrlといった修飾も可能である。
271
271
272
272
これはもちろん、Vimがスクロールホイールのイベントを取得している時にだけ働く。
273
273
この機能が働くかどうかは "xev" プログラムを使用すればチェックできる。
274
+ *mouse-scrolling-off*
275
+ マウスでスクロールさせたくない場合(例えば、手のひらをタッチパッドに置くとス
276
+ クロールイベントが発生するため)、次のようにして無効にできる: >
277
+ :map <ScrollWheelDown> <Nop>
278
+ :map! <ScrollWheelDown> <Nop>
279
+ :map <ScrollWheelUp> <Nop>
280
+ :map! <ScrollWheelUp> <Nop>
281
+ :map <ScrollWheelLeft> <Nop>
282
+ :map! <ScrollWheelLeft> <Nop>
283
+ :map <ScrollWheelRight> <Nop>
284
+ :map! <ScrollWheelRight> <Nop>
274
285
275
286
XFree86を使っているときには、/etc/XF86Configに貴方のマウスの正しいエントリがな
276
287
ければならない。FreeBSDでは、このようなエントリがロジテックのスクロールマウス
Original file line number Diff line number Diff line change 1
- *scroll.txt* For Vim version 9.0. Last change: 2022 May 07
1
+ *scroll.txt* For Vim version 9.0. Last change: 2022 Oct 17
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -280,6 +280,17 @@ You can also use Alt and Ctrl modifiers.
280
280
281
281
This only works when Vim gets the scroll wheel events, of course. You can
282
282
check if this works with the "xev" program.
283
+ *mouse-scrolling-off*
284
+ If you do not want the mouse to cause scrolling (e.g. because resting your
285
+ palm on the touchpad causes scroll events), you can disable that with: >
286
+ :map <ScrollWheelDown> <Nop>
287
+ :map! <ScrollWheelDown> <Nop>
288
+ :map <ScrollWheelUp> <Nop>
289
+ :map! <ScrollWheelUp> <Nop>
290
+ :map <ScrollWheelLeft> <Nop>
291
+ :map! <ScrollWheelLeft> <Nop>
292
+ :map <ScrollWheelRight> <Nop>
293
+ :map! <ScrollWheelRight> <Nop>
283
294
284
295
When using XFree86, the /etc/XF86Config file should have the correct entry for
285
296
your mouse. For FreeBSD, this entry works for a Logitech scrollmouse: >
You can’t perform that action at this time.
0 commit comments