From 1c4ed32ad1bd94ad93f2cdd7f71388bdc28493e8 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Thu, 22 Jan 2015 21:42:12 -0500 Subject: [PATCH] Add s and v mode mappings for scrollwheel mappings --- vim/config/keyboard.vim | 40 ++++++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index b198654..f6d6302 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -327,12 +327,6 @@ "-unmap the suspend function map - - "unmap mousewheel combos to ensure the old behaviour stays gone - map - map - map - map "}}} "ALIASES: COMMAND SHORTCUTS {{{ @@ -369,59 +363,93 @@ "hold ctrl to scroll left/right instead of up/down nnoremap 4zl xnoremap 4zl + snoremap 4zl + vnoremap 4zl inoremap 4zl + nnoremap 4zh xnoremap 4zh + snoremap 4zh + vnoremap 4zh inoremap 4zh "hold alt to scroll left/right more precisely nnoremap zl xnoremap zl + snoremap zl + vnoremap zl inoremap zl + nnoremap zh xnoremap zh + snoremap zh + vnoremap zh inoremap zh "middle & ctrl+left = select from cursor nnoremap xnoremap + snoremap + vnoremap inoremap + nnoremap xnoremap + snoremap + vnoremap inoremap "alt+left = line nnoremap V xnoremap $ + snoremap $ + vnoremap $ inoremap V "ctrl+alt+left = select paragraph nnoremap vip xnoremap ip$ + snoremap ip$ + vnoremap ip$ inoremap vip "ctrl+(middle/right) = copy nnoremap Vy + xnoremap y + snoremap y vnoremap y inoremap y + nnoremap Vy + xnoremap y + snoremap y vnoremap y inoremap y "alt+(middle/right) = cut nnoremap x xnoremap x + snoremap x + vnoremap x inoremap x + nnoremap x xnoremap x + snoremap x + vnoremap x inoremap x "ctrl+alt+(middle/right) = paste nnoremap p xnoremap p + snoremap p + vnoremap p inoremap p + nnoremap p xnoremap p + snoremap p + vnoremap p inoremap p "configure middle click to paste from X