-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 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. > >Best, >Christian -----BEGIN PGP SIGNATURE----- Version: APG v1.1.1 iQI1BAEBCgAfBQJUT65yGBxaeVggPHp5eC52aW1AZ21haWwuY29tPgAKCRCf3UKj HhHSvkV/EACSwam1XxTBhas7Av6x3rxbcknrCzQGJ36OO4Ts3fLMcjSspODAFCBD 29etiHnn8yx2k+FC3WEfXIAa2nUsCR71b6KC5LenBao6umVI30haKjAOdOmIliF2 7HvF29unDZb1CSg9ldVsyiboPfmgwvy2WcteasbaKSLj6ABG8/zNoGLWhQFrr520 nT8R2ZTzmuKl7+N23ujCA0kIGjtFOD4fnNIu09NLhWCrpQCv36HylvIcVEFtfkbE yWJFubdPaGF4e9c0OP2OBDj6W6KSYrnsbAfurvZQPZolMBqa1KPnANE4OYloI9A3 OzVzQW3gEa3IhMXe5KR0geMM86HO3X1H9eH5OL7W9SmhQGqPEl0VJtkq86Pf0HYv tOJRc0+RJRhrMdJI7bKbCNemEuj2nh1pHP5w1sVJu4aaIW48ii1l3zD+L8LyaXJr YgTUI9u4L106AKBeL22PltBfV4s1RnKi5XU5lMpYI2XvNbhPkQekvFySXzfYCjuV LpUvvQxg66BdZ5BNBX8h3PL7UJOeH2y8ZO/EqnzhA+BNZ2VgTWDJV/NX3I4xUf0a anFH338NFqZ4zifjkfeByUZtHfUK3I1yK7l87ZNDuuwiyoXjN6s/lOESJP9PNiPp Fj6xY1dnVQstCb69Ij4ofxMgetez8/C8+onCzwLYpXFVU4L/py9ybA== =DZS8 -----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.
