sponsor Vim development Vim logo Vim Book Ad

multiwin.vim : MultiWin: use VIM like a Rolodex

 script karma  Rating 61/21, Downloaded by 1998    Comments, bugs, improvements  Vim wiki

created by
Patrick Avery
 
script type
utility
 
description
This script manipulates noequalalways, splitbelow, winheight, winminheight, and laststatus to make each buffer (either loaded by command line or via :new) occupy its own window.  All inactive windows are minimized to only statuslines.  This gives the appearance of a Rolodex.  Simply click on a status line and that window is maximized.

Note: once vim is loaded, you must use :new (or :split) to "add" a window to the list.  Using :e will change the buffer in the current window.

This has same effect of using -o on the vim command line when you run vim with multiple filenames on the command line, or "Edit with single vim" context menu in Windows Explorer when multiple files are selected.

This script will not run if vim is set to compatible or is in diff mode.

You can disable the automatic-ness of this script by setting g:singlewin in your vimrc

This script is compatible with vim 6.3 and 7.0.

I'd would like to give credit where credit is due:
Antoine J. Mechelynck - the initial idea of playing with winheight and the other options
Charles E. Campbell, Jr. - enlightening me on the use of sball
Bram - for deflecting my attempts at sliding a patch in and making me think of alternate ways to trick vim into maximizing the current window.and for showing me eventhandler()
Breadman - for showing me wincmd _
 
install details
Place this script into your vimfiles\plugin directory.

WARNING!  This will override settings to noequalalways, splitbelow, winheight, winminheight, and laststatusline.
 

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
multiwin.vim 1.4 2004-12-23 6.0 Patrick Avery MultiWin now keeps quickfix windows at a certain height (default: 10 lines).

MultiWin now reacts to files opened by drag-drop and via the Explorer context menu "Edit with existing Vim" command.
multiwin.vim 1.3 2004-10-04 6.0 Patrick Avery Added extra mappings (gf opens a new window for filename under cursor, Alt-Left and Alt-Right change the current window) and added documentation via DrChip's HelpExtractor.
multiwin.vim 1.2 2004-10-01 6.0 Patrick Avery Added a runtime toggle to suspend multiwin's actions (<Leader>win).
multiwin.vim 1.1 2004-09-13 6.0 Patrick Avery Replaced of the WinHeightKludge function with wincmd _ and stacked the VimEnter event... all thanks to Breadman!
ip used for rating: 54.242.253.192

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.
   
SourceForge.net Logo