Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Zoom in/out of windows (toggle between one window and multi-window)

branch: master

Version 24@1

new     : g:ZoomWin_funcref (holds name of function to be called whenever ZoomWin changes state); see :help g:ZoomWin_funcref
improved: supports saving and restoring of window variables across zooms
bugfix  : saves and restores local options for every window
latest commit cf21ce1f4b
cecamp cecamp authored June 18, 2012 vim-scripts committed July 02, 2012
Octocat-spinner-32 autoload Version 24 July 02, 2012
Octocat-spinner-32 doc Version 24 July 02, 2012
Octocat-spinner-32 plugin Version 24 July 02, 2012
Octocat-spinner-32 README Version 24 July 02, 2012
README
This is a mirror of http://www.vim.org/scripts/script.php?script_id=508

Note: version 23 or later of ZoomWin requires vim 7.2 or later

Usage:

    Press <c-w>o : the current window zooms into a full screen
    Press <c-w>o again: the previous set of windows is restored

Features:

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.

 * ZoomWin is a 7.2 plugin (as of v23)

 * Files are made hidden during zoom-in and restored upon zoom-out

 * All windows' file contents will be restored during zoomouts. 

 * ZoomWin will clean up any temporary files it generates upon exit.
 
 * Session files are guaranteed to be unique to each vim session, so multiple vims can use zoom-in/out without interfering with one another

A later version may be available at http://www.drchip.org/astronaut/vim/index.html#ZOOMWIN .

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).

History:

Ron Aaron came up with the original ZoomWin and gave permission to have it posted.

Something went wrong with that request. Please try again.