0

I want the following configuration:

Tab1: file 1 || file 2

Tab2: file 1 || file 3

I can open vsp with vim using

vim -O file1 file2

I can open tabs with vim using

vim -p file1 file2

Can I combine the two command line arguments somehow?

1 Answer 1

3
vim file1 +'vsplit file2' +'tabedit file1' +'vsplit file3'

A more economic alternative is

vim file1 +'vs file2|tabe file1|vs file3'
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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