How can I open several files using wildcards in a new tab for each file with VIM?
Similar to How can I open several files at once in Vim? but in new tabs instead of buffers.
How can I open several files using wildcards in a new tab for each file with VIM?
Similar to How can I open several files at once in Vim? but in new tabs instead of buffers.
If you want to open only .md.
Or after opening vim, use
:args
to specify md files.with the
p
option:vim -p file1.cc file2.cc file3.cc
Use the
-p
flag:The above will open all files matching
*.c
.You can also create an alias for this (I have
alias vip='vim -p'
and I only typevip *.c
for the above example)If you are in Vim, this command will open each html file in the current directory in its own tab and restore syntax support (disabled by
:argdo
):If you are in your shell, go for the other answers.
To open files in new tabs without replacing the arguments or tabs that are already open:
Also, to search for files in subdirectories: