I have a longish list of files opened in vim that looks like this:
/dir1/file1
/dir2/file2
/dir2/file3
.....
How can I open all of them one
You can use quickfix mode, as following
:set errorformat=%f
:cf myfilelist
at this point you can use the normal quickfix shortcuts to go through your files, :cn
for the next file, :cp
for the previous one and :cr
to go to the first again.
EDIT:
oh, if you want to read the list from the current buffer, use :cb
instead of :cf
in in the instructions above