>>> hey all, >>> >>> Is there a way of searching through multiple buffers? ie: I'd like a >>> derivative of '/' to be able to span files, ie: if it doesn't find it in >>> one file, it goes to the next in the bufferlist, and so on.. >>> >>> Having the ability to autosave if it exits the buffer would be cool >>> too.. >>> >> If files are sharing common element in name you can use: >> >> :vimgrep /re/ {namewithwildcards} >> >> For buffers you can also use >> >> :bufdo vimgrep /re/ % >> >> But it has few downsides: matches for all files will be saved into >> separated quickfix lists, Vim will remember only last ten lists.
You should be able to join them together by doing :bufdo vimgrepadd /re/ % shouldn't you? Need to clear the list beforehand, I suppose. I can't spot a simple command for that, but I think :cexpr "" will do it if nothing else! Ben. Send instant messages to your online friends http://au.messenger.yahoo.com --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---