From: Jannik ZANDER Date: Thu, 28 Jun 2018 09:42:18 +0000 (+0200) Subject: Modified vimrc X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=4c1d80718cbb8cb742957feb9ed33e8ecfee3e85;p=dotfiles.git Modified vimrc --- 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