2

Say I have a window with 3 stacked panes:

┌──────────────────┐
│                  │
│                  │
├──────────────────┤
│                  │
│                  │
├──────────────────┤
│                  │
│                  │
└──────────────────┘

Is there a command (or plugin?) to open a fourth pane that’s essentially a level above the split tree:

┌─────────┬────────┐
│         │        │
│         │        │
├─────────┤        │
│         │        │
│         │        │
├─────────┤        │
│         │        │
│         │        │
└─────────┴────────┘
Dan Li
  • 121
  • 2

1 Answers1

1

There is no "split tree" to speak of, and no way to tell Vim to open a new window at an arbitrary location.

But you can…

  1. Split the current window. The direction of the split doesn't matter so any of these will do:

    <C-w>v
    <C-w>s
    :vsplit
    :split
    

    See :help :split

  2. Move the window to the far right of the screen:

    <C-w>L
    

    See :help window-moving.

You can create a custom mapping if <C-w>v<C-w>L is too much:

nnoremap <F5> <C-w>v<C-w>L
romainl
  • 23,415