" {{{ Zoom / Restore window function! s:ZoomToggle() abort if exists('t:zoomed') && t:zoomed exec 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> <M-z> :ZoomToggle<CR> nnoremap <silent> <M-m> :ZoomToggle<CR> }}}
about things which are worth remembering, mostly coz of author's laziness to remember them on his own
Monday, June 30, 2014
Vim: Zoom / Restore Window
Labels:
vim
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment