From 135986389daf7c2fa19e321abc6a6b73185ea4ca Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Sun, 14 Jun 2015 21:27:33 +0200 Subject: [PATCH] Change mappings for window navigation and resizing Window navigation is reverted to vim's stock key combination, since tmux is configured to work very similarly (using its prefix instead of CTRL-W). Window resizing is done more deterministically by adding/removing columns/lines instead of using multipliers on the window height/width. --- vimrc | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/vimrc b/vimrc index 0279d03..8e31353 100644 --- a/vimrc +++ b/vimrc @@ -110,19 +110,11 @@ augroup vimrc " {{{ augroup END " }}} " Key mappings {{{ - " split navigations and resizing - nnoremap - nnoremap - nnoremap - nnoremap - nnoremap :execute "resize " . (winheight(0) * 5/4) - nnoremap :execute "resize " . (winheight(0) * 4/5) - nnoremap :execute "vertical resize " . (winwidth(0) * 5/4) - nnoremap :execute "vertical resize " . (winwidth(0) * 4/5) - - " fast navigation of matchpairs ({[]}) - nnoremap % - vnoremap % + " window resizing similar to the way I have tmux set up + nnoremap 5+ + nnoremap 5- + nnoremap 5< + nnoremap 5> " retain selection when indenting/unindenting in visual mode vnoremap > >gv