archlinux - How to disable vim mouse wheel? -
i want know how disable mouse wheel, found this , this question , have tried put them .vimrc:
set mouse="" map <scrollwheelup> <nop> map <s-scrollwheelup> <nop> map <scrollwheeldown> <nop> map <s-scrollwheeldown> <nop>
but none of them disable mouse wheel, still can use scrolling.
and i'm on arch linux, using vim 7.4 gnome-terminal 3.16.2.
it gnome-terminal problem , not vim one. .vimrc is, can turn on , off mouse wheel issuing these commands in terminal
echo -e '\e[?1000h' echo -e '\e[?1000l'
edit: previous answer doesn't work because gnome-terminal settings overridden settings of cinnamon (in case), , maybe because scrolling done using touchpad , not mouse. possible disable scrolling of synclient (command line utility configure , query synaptics driver settings) putting
augroup scroll au! au vimenter * :silent !synclient vertedgescroll=0 au vimleave * :silent !synclient vertedgescroll=1 augroup end
in .vimrc.
this solution not optimal disabling scrolling outside of vim long vim runs.
Comments
Post a Comment