I'm a newb trying to learn neovim. I'd like a layout where a tab window is on the left-hand side and the right hand side has a horizontal split with the terminal window in the bottom and various help texts and other temp buffers on top. The tab window on the left would then contain buffers for source files.
I start off with :vs
to split the window. On the left hand side I open a file in a tab. When I open a second file in tab on the left-hand side, it takes over the full width, i.e., only the first tab has the vertical split. How can I make the vertical split dominant?
Edit: Thanks for the preliminary responses. "Window" might not be the right word for what I want; maybe a layout or window container?
This first picture depicts an initial layout I'd like to achieve. You can see the tabs for test.h and test.cpp on the left and the terminal on the right. To create this I first split the initial window with :vs
, then used telescope's sf
with Ctrl-T
to open test.h and test.cpp in tabs.
But when I switch to the test.cpp tab, it takes up the full width of the screen. Instead I'd like for test.cpp to be displayed like test.h above, in half the width.
I suppose I could achieve a similar layout using tmux, but I'd also like to have the right-hand side split horizontally with the terminal in the lower half and helpful docs/context/find results/etc. in the upper half. The goal is to have most of the functionality and UI of an IDE with the control and stability of vi.