Accordion is a vim window manager for people who love vsplits. Vsplits can be great for viewing levels of a call stack or versions of a file side-by-side, but if there are more than a few, they become too thin to comfortably read.
Accordion lets you set the maximum number of vsplits you want to see, and shrinks the rest to be one column wide.
If you want to view changes to a file over time, it's got a fancy diff mode. Even if you're not big on vsplits, you may want to consider Accordion for this feature alone.
Version 0.3.0
No backwards compatability is guaranteed at this time.
For a much more detailed guide, please type :help accordion or read doc/accordion.txt.
To enforce that the current tab always shows at most 3 vsplits, run :Accordion 3. Accordion will give you a viewport of 3 vsplits and shrink all splits outside the viewport. As you bump against the edges of the viewport, it will move with you. You can stop Accordion by running :AccordionStop
While Accordion is running, use :AccordionZoomIn and AccordionZoomOut to change the size of the viewport.
Accordion also has a special diff mode that you can start by running :AccordionDiff.
Try this when you have many versions of the same file side-by-side in chronological order.
Accordion will shrink all but two vsplits, and visible vsplits will be diffed against each other.
The easiest way to open versions of a file is to run fugitive's :Glog --reverse, highlight the desired changes in the quickfix list, and hit the unstack shortcut.
See the screenshots below for an example of diff mode in action.
There are also commands to temporarily change the layout without starting/stopping. To learn more about these, type :help accordion-running-once.
:Accordion 3 (Please ignore the fact that it's :AccordionStart at the bottom, I renamed the command.)
:AccordionDiff
I was inspired to write this after using MultiWin and wanting a similar approach that allows for more than one window to be visible at a time.
If you want to quickly maximize a single window, take a look at ZoomWin or try using :tab sp.
Copyright (c) Matthew Boehm. Distributed under the same terms as Vim itself.
See :help license.

