How to open and split multiple files

Viewed 16034

How can I open in a split window multiple files. One split for each file if I'm not being clear.

I want to do something like. :sp app/views/*.erb and have the ~7 files all open in their own split windows.

5 Answers

Just learned from tonymec@#vim that you can do

:args app/views/*.erb | all

for horizontal splits or

:args app/views/*.erb | vertical all

for vertical.

Related