> "View last search results in their own window (Cur file) > > nmap <leader>w :vimgrep //j %<CR>:copen<CR><CR> > > to open up a quickfix window of my last searched term in my quickfix > window. I usually have a number of buffers open; is it possible to do the > same behavior, but in all open buffers? (I'd like to map to <leader>W). It > seems at least once a day I want to do this; but I have not come up with an > easy method yet.
Have you looked at Grep.vim: http://www.vim.org/scripts/script.php?script_id=311 It has many commands (including GrepBuffer). :GrepBuffer - Search for a pattern on all open buffers :GrepBufferAdd - Same as ":GrepBuffer" but adds the results to the current results HTH, Dave --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---