Disabling Two-Finger Scrolling in Vim

I run Arch Linux with a powerful Vim installation, and although I like it very much, I find it difficult to program from time to time because my palm often falls on the touchpad, thereby forcing my cursor to scroll through the places that cause me to screw my code. This can be time consuming as well as disappointing. Is there a way to disable this in vim and only vim, or will I have to completely disable touchpad scrolling? If there is a way, what is this magic team?

Edit

The version of Vim used at the time of this writing was 7.3.353-2.

+4
source share
2 answers

You can reassign these bindings without an operation (see :help <scrollwheel :

 noremap <ScrollWheelUp> <nop> noremap <S-ScrollWheelUp> <nop> noremap <C-ScrollWheelUp> <nop> noremap <ScrollWheelDown> <nop> noremap <S-ScrollWheelDown> <nop> noremap <C-ScrollWheelDown> <nop> noremap <ScrollWheelLeft> <nop> noremap <S-ScrollWheelLeft> <nop> noremap <C-ScrollWheelLeft> <nop> noremap <ScrollWheelRight> <nop> noremap <S-ScrollWheelRight> <nop> noremap <C-ScrollWheelRight> <nop> 
+3
source

I think this is a problem with your terminal program. I just tried yakuake and it looks like its version on the KDE konsole. Open error detected:

https://bugs.kde.org/show_bug.cgi?id=170582

Perhaps naively, I hope that fixing this error for konsole will also fix the behavior for yakuake.

+1
source

Source: https://habr.com/ru/post/1388939/


All Articles