Re: :vimgrep on all buffers

2006-05-31 Thread Eric Arnold
On 5/31/06, Yegappan Lakshmanan <[EMAIL PROTECTED]> wrote: Hi, On 5/31/06, Eric Arnold <[EMAIL PROTECTED]> wrote: > How about > > set errorformat+=%f,%f:%m,%f:%l:%m > > command! -nargs=* Bufgrep silent! bufdo! g//caddexpr expand("%") > . ":" . line(".") . ":" . getline(".") > > It does have a p

Re: :vimgrep on all buffers

2006-05-31 Thread Yegappan Lakshmanan
Hi, On 5/31/06, Eric Arnold <[EMAIL PROTECTED]> wrote: How about set errorformat+=%f,%f:%m,%f:%l:%m command! -nargs=* Bufgrep silent! bufdo! g//caddexpr expand("%") . ":" . line(".") . ":" . getline(".") It does have a problem where it tries to open the first entry automatically, but it open

Re: :vimgrep on all buffers

2006-05-31 Thread Bob Hiestand
On 5/31/06, Eric Arnold <[EMAIL PROTECTED]> wrote: On 5/31/06, Cory Echols <[EMAIL PROTECTED]> wrote: > On 5/31/06, Bernhard Leiner <[EMAIL PROTECTED]> wrote: > > Hi! > > > > I'm looking for a good soultion to to search for a keyword in all open buffers. > > > > Using the :bufdo command to searc

Re: :vimgrep on all buffers

2006-05-31 Thread Eric Arnold
On 5/31/06, Cory Echols <[EMAIL PROTECTED]> wrote: On 5/31/06, Bernhard Leiner <[EMAIL PROTECTED]> wrote: > Hi! > > I'm looking for a good soultion to to search for a keyword in all open buffers. > > Using the :bufdo command to search in all buffers basically does what > I want but the output is

Re: :vimgrep on all buffers

2006-05-31 Thread Eric Arnold
How about set errorformat+=%f,%f:%m,%f:%l:%m command! -nargs=* Bufgrep silent! bufdo! g//caddexpr expand("%") . ":" . line(".") . ":" . getline(".") It does have a problem where it tries to open the first entry automatically, but it opens the line contents instead of the buffer name, but it do

Re: :vimgrep on all buffers

2006-05-31 Thread Cory Echols
On 5/31/06, Bernhard Leiner <[EMAIL PROTECTED]> wrote: Hi! I'm looking for a good soultion to to search for a keyword in all open buffers. Using the :bufdo command to search in all buffers basically does what I want but the output isn't very useable. Using :vimgrep on multiple _files_ with its

:vimgrep on all buffers

2006-05-31 Thread Bernhard Leiner
Hi! I'm looking for a good soultion to to search for a keyword in all open buffers. Using the :bufdo command to search in all buffers basically does what I want but the output isn't very useable. Using :vimgrep on multiple _files_ with its output in the quickfix window is much better but works o