bill lam wrote:
> How to load all files inside a quickfix list into buffers instead of
> opening them one by one?

Untested:

:cfirst | while 1 | split | cnfile | endwhile

It should have an error once there are no more files. There will be one
too many windows, as the last file will be displayed in the last two
windows. To tidy it up, you would make a try block, catch the specific
error that happens when :cnfile fails, and do a :q after that. And you'd
wrap the whole lot in a user command or map or something.

There are other ways to do it, too, e.g. using getqflist().

Ben.




--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to