Skip to content

Commit

Permalink
GUI resize func + mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
bluedrink9 committed Jan 21, 2020
1 parent 751b455 commit ead3800
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions editors/vim/functions.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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 <M-S-left> :call ResizeGUIHoriz(-g:GUIResizeValue)<cr>
nnoremap <M-S-right> :call ResizeGUIHoriz(g:GUIResizeValue)<cr>
nnoremap <M-S-up> :call ResizeGUIVert(-g:GUIResizeValue)<cr>
nnoremap <M-S-down> :call ResizeGUIVert(g:GUIResizeValue)<cr>

0 comments on commit ead3800

Please sign in to comment.