The question in short: Is it possible to open a tab in a window and not a window in a tab?. Like this:
Instead of this:
Some background related to the question:
I'm used to the interface like the one on the first screen shot above, where the tabs are in the windows.
Initially I was able to achieve this in Vim with the help of a console app's functionality, because I was very new to Vim and didn't want to remember even more commands to work with windows. But this approach has some inconveniences to me:
- no sharing of registers
- the
.viminfo
file is opened separately for each instance of vim, and therefore some important information can be lost, if the instance of vim, where it was present was closed first (because each instance of the editor overwrites the.viminfo
file).
I've managed some workarounds for each of these problems, listed below in case anyone other will face this issue:
- for the sharing of registers between windows of a terminal, I installed the
xclip
application and copy registers with ex-commands like:call system('xclip', @")
- for the
.viminfo
rewrite issues I just try to pay attention to the order of closing Vim instances.
But the other day I got tired of this, and decided to try the windows in Vim, and the first thing I found was that the tabs are sort of "above" the windows, what I personally do not like.
I looked some Vim docs about this, and it seems that it is not possible to open a tab in a window. Can anyone answer to this by either explaining how it is possible, or affirming that it is not possible?