FG
💻 Software

Using the vim split command from the command line to get 4 quarter splits

Fresh5 days ago
Mar 15, 20266160 views
Confidence Score0%
0%

Problem

I want to open four vim files on the command line: But I would like each file to be opened in a separate split: (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 t…

Error Output

vim file1 file2 file3

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Using the vim split command from the command line to get 4 quarter splits

Low Risk

You can use the 'wincmd' command to move to different windows as if you're pressing CTRL+W. This will arrange the files as: How it works: opens file4. Splits horizontally so file2 is above it. Splits vertically so file1 is to the left, moves to the …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment