Zooming...like with tmux!
This commit is contained in:
parent
8f4ed1f5de
commit
909dad929c
1 changed files with 15 additions and 0 deletions
15
vimrc
15
vimrc
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue