1 " ZoomWin: Brief-like ability to zoom into/out-of a window
2 " Author: Charles Campbell
3 " original version by Ron Aaron
5 " Version: 23e ASTRO-ONLY
6 " History: see :help zoomwin-history {{{1
7 " GetLatestVimScripts: 508 1 :AutoInstall: ZoomWin.vim
9 " ---------------------------------------------------------------------
11 if &cp || exists("g:loaded_ZoomWinPlugin")
16 echo "***warning*** this version of ZoomWin needs vim 7.2"
21 let g:loaded_ZoomWinPlugin = "v23"
25 " ---------------------------------------------------------------------
26 " Public Interface: {{{1
27 if !hasmapto("<Plug>ZoomWin")
28 nmap <unique> <c-w>o <Plug>ZoomWin
30 nnoremap <silent> <script> <Plug>ZoomWin :set lz<CR>:silent call ZoomWin#ZoomWin()<CR>:set nolz<CR>
31 com! ZoomWin :set lz|silent call ZoomWin#ZoomWin()|set nolz
33 au VimLeave * call ZoomWin#CleanupSessionFile()
35 " ---------------------------------------------------------------------
36 " ZoomWin: toggles between a single-window and a multi-window layout {{{1
37 " The original version was by Ron Aaron.
38 " This function provides compatibility with previous versions.
40 call ZoomWin#ZoomWin()
43 " ---------------------------------------------------------------------
47 " ---------------------------------------------------------------------
49 " vim: ts=4 fdm=marker