Open Multiple Tabs with Vim
I like to use Vim to open many files at once. Today I discovered the -p
flag to help with this process.
To open all the files in a directory in tab mode, use this command:
$ vim -p path/to/files/*
-o
does the same thing in horizontal splits; -O
in vertical splits.
When you're finished reading, :qall
is a nice way to close the book.