I know about running
vim -p file1 file2 file3
But is there away to do something similar from within vim? What I've thought about wanting to do is
:tabe file1 file2 file3
or (IMO worse, but still an improvement):
:edit file1 file2 file3
...but neither of those are possible, by default at least.
try this:
:args file1 file2 file3 |tab sall
this will only put newly opened file (file1, file2, file3
) in tabs, not all buffers.
if you want to open all buffers in tabs, replace sall
to sball
btw, is tab convenient to work with? personally I like working with buffer more...
Upon browsing the web more extensively, researching in regards to this question, the best solution I've found so far is:
:arga file1 file2 file3 (...)
Which will create buffers for all the input files. Then follow that by:
:tab sball
Which will open all the buffers into separate tabs. But maybe there's an even better/shorter way? If not maybe I'm helping someone else out there, having the same problem/question.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With