Open multiple files at once in a tab and split in Vim

vim

I'm wondering, if I have already open two files in Vim with a vertical split, but I want to open another two files in an extra tab and split those two files in vertical window, how can I do it?

I know I can do:

:tabnew file1
:vsp file2

Is there a way to do it one-line?

Best Answer

I'm not sure this is what you're looking for, but it is one line:

:tabnew file1 | vsp file2

See

:help :bar
Related Question