Quite often I’ll open up several different file in the vim buffer to be edited.
Commands like that can save you a lot of time searching through files looking for a single value or word.
How many files did that load into Vim’s buffer? Check with:
Let’s say grep found three files and you want to view them all on the screen at the same time. The :ball command is your friend.
This will split the screen horizontally, once for each file in the buffer (Check this post to learn more about working within split screens in Vim.)
This offers a very fast way to get all of the files in your buffer on the screen at once.




Great tips. Thanks Stephen!
You could also do
to split the screen horizontally.
Using -O would split vertically, and -p would open a tab for each file.