When launching vim from the command line, I can do for example vim *.txt
to open all text files in a directory at once.
For some reason, trying the same fro
Also, to add to the other answers, when you first start vim you can open multiple files at the same time, e.g.:
vim *.txt
It's done in two operations.
Open all *.js
files in as many vertical splits:
:argadd *.js
:argdo vs
in horizontal splits:
:argdo sp
in tabs:
:argdo tabe
This should work :
:next *.txt