How do I open all buffers in split windows?
Answer
:ball
Explanation
The :ball command opens a window for every buffer in the buffer list. Each buffer gets its own horizontal split.
How it works
:ballcreates horizontal splits for all buffers:vertical ballcreates vertical splits instead:tab ballopens each buffer in its own tab
Example
With 4 files loaded (:ls shows 4 buffers), :ball creates 4 horizontal splits.
Tips
- This can create many windows — use with few buffers
:tab ballis often more practical for many files:sballis a synonym for:ball:onlyreturns to a single window- Combine with
:set hiddenfor smooth buffer management