From ead3800f3961a8fcbabd861c79a9973ecb40523b Mon Sep 17 00:00:00 2001 From: bluedrink9 Date: Tue, 21 Jan 2020 16:25:04 +1300 Subject: [PATCH] GUI resize func + mappings --- editors/vim/functions.vim | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/editors/vim/functions.vim b/editors/vim/functions.vim index d16efa96..369293c8 100755 --- a/editors/vim/functions.vim +++ b/editors/vim/functions.vim @@ -167,6 +167,14 @@ function! CenterText() let &signcolumn="yes:" . l:marginSize endfunction -function! s:getScreenWidth() - return +function! ResizeGUIVert(value) + let &lines+=a:value endfunction +function! ResizeGUIHoriz(value) + let &columns+=a:value +endfunction +let g:GUIResizeValue=5 +nnoremap :call ResizeGUIHoriz(-g:GUIResizeValue) +nnoremap :call ResizeGUIHoriz(g:GUIResizeValue) +nnoremap :call ResizeGUIVert(-g:GUIResizeValue) +nnoremap :call ResizeGUIVert(g:GUIResizeValue)