sponsor Vim development Vim logo Vim Book Ad

toggle_maximize.vim : Keybinds to temporarily maximize the current window, squashing the rest.

 script karma  Rating 30/13, Downloaded by 1941  Comments, bugs, improvements  Vim wiki

created by
joey twiddle
 
script type
utility
 
description
Vim can support complex window layouts, but they can put users off because
they reduce the size of the main editing window.  ToggleMaximize addresses
this issue, by allowing the user to switch between a large editor window,
and his own complex window layout.

Press Ctrl-F or Ctrl-\ to maximize the size of the current window, press
again to restore the original window layout.

Ctrl-V and Ctrl-H toggle maximize in vertical/horizontal direction only.

Maximization is forced to respect winminwidth and winminheight, so if you
have these set, other windows will not fully shrink to the edges.

If the user changes the size of any windows after maximizing, the script
still thinks the toggle is ON, so next time it is used it will restore your
old layout, rather than re-maximize (unlike some window managers).


 
install details
drop it in plugin/

Edit the bottom of the file to choose what keys you want to use.

Default keys are:
  C-F     toggle maximize
  C-V     toggle vertical maximize
  C-H    toggle horizontal maximize
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
toggle_maximize.vim 1.28 2013-06-26 6.0 joey twiddle Better compatibility with windows_remember_size.vim
toggle_maximize.vim 1.27 2012-10-24 7.0 joey twiddle Initial upload
ip used for rating: 142.132.191.50

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github