-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 28-Oct-2014 15:55 +0100, Павлов Николай  Александрович wrote:

On 28-Oct-2014 15:55, Павлов Николай Александрович wrote:> On October
28, 2014 3:22:58 PM EAT, Christian Brabandt <[email protected]> wrote:
>> Am 2014-10-28 12:04, schrieb James McCoy:
>>> On Oct 28, 2014 2:40 AM, "Christian Brabandt" 
>>> <[email protected]> wrote:
>>>> 
>>>> Am 2014-10-27 23:08, schrieb Bee:
>>>>> Just curious...
>>>>> 
>>>>> How is that different from simply using `/` ?
>>>>> 
>>>>> Is this a `just in case` scenario?
>>>> 
>>>> 
>>>> I find it convenient to have all search results in the 
>>>> quickfix
>>> buffer.
>>> 
>>> It'd be even more convenient to allow searching more than just 
>>> the current buffer (says someone that wrote a buffer grep 
>>> plugin).
> 
>> Sure, but I am not sure how to specify it: Something like this 
>> (vimgrep buffers 1-4)?
> 
>> :vimgrep /foobar/ 1,2,3,4 which would not work, if there is a 
>> file 1,2,3,4
> 
>> We don't have commands, that accept several buffer numbers, 
>> right?
> 
> Wrong. :bw and similar commands accept more then one buffer.
> 
>> But perhaps an argdo/bufdo :vimgrep would suffice?
> 
> No. This will result in either having a hack for catching the 
> situation "vimgrep called from :*do" or having a quickfix list
> with the results for the last buffer only.  There is :vimgrepadd,
> but this is not going to empty quickfix list before proceeding.
> And :bufdo is a) non-selective and b) switches current buffer.

Well, then perhaps a separate :bvimgrep[add] set of commands would be
better than overloading the existing commands:

:bvimgrep[!] /{pattern}/[g][j] [bufname]
:N,Mbvimgrep[!] /{pattern}/[g][j]
:bvimgrep[!] /{pattern}/[g][j] N1 N2 ...

- -- regards, ingo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)

iQEcBAEBAgAGBQJUT7hAAAoJEA7ziXlAzQ/vj20H/j7Vng7ns2UVsWpT2nHHAjHw
CMxs8H5eTzwUOK6UxZ7CXKZvkeaoamm8fjIIqdk1kGzzRoTiylS3C6Iti7XsYnJH
1id/gzbDWuAc5h0MmBxmyLrRaErmlK2LsjKfjvH5tsJMzXZoaIj35kgvVdR0ZDmd
dPwSEfDwUnxUu14rNnE1LaKi/cSSmzMvqvLfiCwIrQfUrfQcRWXd3W2Pw8D7x33Z
MDTCSBVF9bCxbNEiUjOmun/rWGajyFfdhuzXcmciwkSSAUVJkq1sJleC7IES5QIg
Q1j0rf6RrfL3aHuVHlySDjQQCuqxqSbZnVYdBDg8aIbwg0iBJShhNLcYkcFNNfg=
=vlIz
-----END PGP SIGNATURE-----

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui