Using the vim split command from the command line to get 4 quater splits
- by sixtyfootersdude
I want to open four vim files on the command line:
vim file1 file2 file3
But I would like each file to be opened in a separate split:
vim -c "split file1" -c "split file2" -c "split file3" file4
(The above splits the screen horizontally 4 times)
Ideally what I would like to do is split the screen into 4 squares like:
|-------|-------|
| | |
| | |
|-------|-------|
| | |
| | |
|-------|-------|
I know how to do this once vim is open but I am unable to do this from the command line (using vs). Any ideas? Everything I try ends up looking like this (or a different variation):
|-------|-------|
| | |
|-------| |
| | |
|-------| |
| | |
| | |
|-------|-------|