sponsor Vim development Vim logo Vim Book Ad

winStack : Commands to manage window splits as a window stack.

 script karma  Rating 10/4, Downloaded by 316  Comments, bugs, improvements  Vim wiki

created by
Javier Puigdevall
 
script type
utility
 
description
Based on a window layout configuration with two vertical splits, one without horizontal splits (main window), the other with several horizontal splits (window stack).

Aso on: https://github.com/javipv/winStack

1) Window layout with stack on the right:

     Main          Stack
+-------------+---------------+
|                  | Window 2  |
|                 +---------------+
|                  | Window 3  |
| Window 1+---------------+
|                  | Window 4  |
+-------------+---------------+

2) Window layout with stack on the left:
let g:windowStack_defaultSide = "left"

   Stack              Main
+---------------+---------------+
| Window 1   |                   |
+---------------+                  |
| Window 2   |  Window 4 |
+---------------+                  |
| Window 3   |                   |
+---------------+---------------+

The plugin helps moving a buffer to the main window, add it to the window stack as a new split, or exchange buffers between stack tnd main window.

Quickix items can be opened too on the stack or main window directly from the quickfix list .

Recomended .vimrc mappings:
nmap <unique> <F5> :WinUnstack<CR>
nmap <unique> <F8> :WinStack<CR>

Commands:

:WinStack, <leader>ws or <F5>
Stack a window, move it to the bottom of the window stack.

:WinUnstack, <leader>wu or <F8>
Unstack a window, move it to the main window split.

:WinStTest
Open an example window layout to test the commands.
 
install details
Simplest method:
- Just unzip to your .vim folder.

Plugin manager:
- Either vim-pathogen or Vundle are recommended.
 

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
winStack.tar.gz 0.0.1 2020-06-17 7.0 Javier Puigdevall Initial upload
ip used for rating: 18.222.163.31

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