Explorar o código

Increased Vim mouse scroll speed

Taddeus Kroes %!s(int64=11) %!d(string=hai) anos
pai
achega
e1d55c729c
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  1. 11 0
      vimrc

+ 11 - 0
vimrc

@@ -66,6 +66,17 @@ set hlsearch                " highlight search terms
 set incsearch               " show search matches as you type
 set ignorecase smartcase    " clever case sensitivity
 
+" ---------------------------
+" Mouse selection & scrolling
+" ---------------------------
+
+"set mouse=a
+
+map <ScrollWheelUp> <C-Y>
+map <S-ScrollWheelUp> <C-U>
+map <ScrollWheelDown> <C-E>
+map <S-ScrollWheelDown> <C-D>
+
 " -----------------------
 " Key bindings / commands
 " -----------------------