]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
gvimrc: Disable mouse and mouse wheel.
authorSimon Ruderich <simon@ruderich.org>
Wed, 25 Jan 2012 15:02:03 +0000 (16:02 +0100)
committerSimon Ruderich <simon@ruderich.org>
Wed, 25 Jan 2012 23:01:49 +0000 (00:01 +0100)
gvimrc

diff --git a/gvimrc b/gvimrc
index a902d7e8b50ac7ff118eeb8c14df616ab2685af6..a66e68301e3b74ede732b2bf1682aea4b0449258 100644 (file)
--- a/gvimrc
+++ b/gvimrc
@@ -32,3 +32,19 @@ set guioptions-=L
 " Increase window size to 110x25.
 set columns=110
 set lines=25
+
+" Don't use the mouse.
+set mouse=
+" And don't use the mouse wheel.
+map <ScrollWheelUp>      <Nop>
+map <S-ScrollWheelUp>    <Nop>
+map <C-ScrollWheelUp>    <Nop>
+map <ScrollWheelDown>    <Nop>
+map <S-ScrollWheelDown>  <Nop>
+map <C-ScrollWheelDown>  <Nop>
+map <ScrollWheelLeft>    <Nop>
+map <S-ScrollWheelLeft>  <Nop>
+map <C-ScrollWheelLeft>  <Nop>
+map <ScrollWheelRight>   <Nop>
+map <S-ScrollWheelRight> <Nop>
+map <C-ScrollWheelRight> <Nop>