20
10
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):
|-------|-------|
| | |
|-------| |
| | |
|-------| |
| | |
| | |
|-------|-------|
I know how to do this once vim is open Could you explain how to do it once Vim is open? Once I open four windows I can only make one window go all the way to the top/left/right/bottom. – user1717828 – 2020-02-09T01:40:19.853