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?

Thanks

link|improve this question
feedback

1 Answer

up vote 3 down vote accepted

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

:tabnew file1 | vsp file2

See

:help :bar
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.