├── README ├── plugin └── ZoomWinPlugin.vim ├── doc └── ZoomWin.txt └── autoload └── ZoomWin.vim /README: -------------------------------------------------------------------------------- 1 | This is a mirror of http://www.vim.org/scripts/script.php?script_id=508 2 | 3 | Note: version 23 or later of ZoomWin requires vim 7.2 or later 4 | 5 | Usage: 6 | 7 | Press o : the current window zooms into a full screen 8 | Press o again: the previous set of windows is restored 9 | 10 | Features: 11 | 12 | The idea is to make it easy to zoom into and out of a window. ZoomWin supports normal windows, and it now also supports scratch-windows, no-name windows, and modified-buffer windows. 13 | 14 | * ZoomWin is a 7.2 plugin (as of v23) 15 | 16 | * Files are made hidden during zoom-in and restored upon zoom-out 17 | 18 | * All windows' file contents will be restored during zoomouts. 19 | 20 | * ZoomWin will clean up any temporary files it generates upon exit. 21 | 22 | * Session files are guaranteed to be unique to each vim session, so multiple vims can use zoom-in/out without interfering with one another 23 | 24 | A later version may be available at http://www.drchip.org/astronaut/vim/index.html#ZOOMWIN . 25 | 26 | When zooming in, ZoomWin's window is full sized, with no loss of screen space to status lines for other windows, unlike vimscript#1280 (ToggleOnly), for those vims compiled with the +mksession feature. For those vims without that feature, v21 ZoomWin now supports partial-zoom-in (leaves a status line behind for each window). 27 | 28 | History: 29 | 30 | Ron Aaron came up with the original ZoomWin and gave permission to have it posted. 31 | 32 | -------------------------------------------------------------------------------- /plugin/ZoomWinPlugin.vim: -------------------------------------------------------------------------------- 1 | " ZoomWin: Brief-like ability to zoom into/out-of a window 2 | " Author: Charles Campbell 3 | " original version by Ron Aaron 4 | " Date: Apr 07, 2011 5 | " Version: 24iNR NOT RELEASED 6 | " History: see :help zoomwin-history {{{1 7 | " GetLatestVimScripts: 508 1 :AutoInstall: ZoomWin.vim 8 | 9 | " --------------------------------------------------------------------- 10 | " Load Once: {{{1 11 | if &cp || exists("g:loaded_ZoomWinPlugin") 12 | finish 13 | endif 14 | if v:version < 702 15 | echohl WarningMsg 16 | echo "***warning*** this version of ZoomWin needs vim 7.2" 17 | echohl Normal 18 | finish 19 | endif 20 | let s:keepcpo = &cpo 21 | let g:loaded_ZoomWinPlugin = "v24" 22 | set cpo&vim 23 | "DechoTabOn 24 | 25 | " --------------------------------------------------------------------- 26 | " Public Interface: {{{1 27 | if !hasmapto("ZoomWin") 28 | nmap o ZoomWin 29 | endif 30 | nnoremap