From 4c1d80718cbb8cb742957feb9ed33e8ecfee3e85 Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Thu, 28 Jun 2018 11:42:18 +0200 Subject: [PATCH] Modified vimrc --- .vim/vimrc | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.vim/vimrc b/.vim/vimrc index 507f5f0..628566a 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -247,18 +247,15 @@ if has("cscope") map :cstag =expand("") endif -" Maps Ctrl-[h,j,k,l] to windows split navigations -nnoremap -nnoremap -nnoremap -nnoremap - -" -" Maps Ctrl-[h,j,k,l] to resizing a window split -nnoremap < -nnoremap - -nnoremap + -nnoremap > +" Maps Ctrl-[h,j,k,l,+,-] to windows split navigations and resizing +nnoremap +nnoremap +nnoremap +nnoremap +if bufwinnr(1) +nnoremap j :exe "resize " . (winheight(0) * 2/3) +nnoremap k :exe "resize " . (winheight(0) * 3/2) +endif " folding noremap za -- 2.43.0