Last updated 3 years ago
To open a list of files in split windows, we can use the -o and -O flags:
-o
-O
Likewise, the -n flag can be used to open files in a tab each.
-n
See :help -o for more information.
:help -o
# Opens files in horizontal splits vim -o file1 file2 file3 # The same, but with vertical splits vim -O file1 file2 file3