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 from inside vim ( :e *.txt
) gives an error: E77: Too many file names
.
Is there a reason why vim refuses to open multiple at once? Is there a way to change that?
This should work :
:next *.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
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