Zooming...like with tmux!

This commit is contained in:
Andrew Tomaka 2016-02-17 16:58:20 -05:00
parent 8f4ed1f5de
commit 909dad929c

15
vimrc
View file

@ -250,6 +250,21 @@ function! HLNext (blinktime)
redraw redraw
endfunction endfunction
" Zoom / Restore window.
function! s:ZoomToggle() abort
if exists('t:zoomed') && t:zoomed
execute t:zoom_winrestcmd
let t:zoomed = 0
else
let t:zoom_winrestcmd = winrestcmd()
resize
vertical resize
let t:zoomed = 1
endif
endfunction
command! ZoomToggle call s:ZoomToggle()
nnoremap <silent> <C-w>z :ZoomToggle<CR>
" Set special case colors " Set special case colors
function! SetColors() function! SetColors()
highlight CursorLine cterm=NONE ctermbg=234 highlight CursorLine cterm=NONE ctermbg=234