-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
On October 29, 2014 10:54:38 PM EAT, Bram Moolenaar <
Br...@moolenaar.net> wrote:
>
>Christian wrote:
>
>> On Di, 28 Okt 2014, Ingo Karkat wrote:
>> > 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 ...
>>
>> Sounds useful. Bram, would you consider including this feature, if I
>> write a patch for that?
>
>I think it can be done with a bit of Vim script, but it might be
>generally useful, thus nice to work without installing a plugin.
>
>It could also be a solution for something that doesn't work yet: Search
>within a Visual block. Since this is going to be a new command, we can
>make :'<,'> respect the Visual mode, including block. So you could
>select a block and type ":bvimgrep /pattern/", then move to matches
>with
>:cn.
>
>I think we can actually call it ":bgrep". It's very unlikely 'grepprg'
>is useful to search in buffers and it's shorter to type.
No. It is useful if you use something like ag (aka the silver searcher), because VimL regexes lack full Unicode support. Also naming command like "bgrep" in place of "bvimgrep" is inconsistent.
-----BEGIN PGP SIGNATURE-----
Version: APG v1.1.1
iQI1BAEBCgAfBQJUUjhWGBxaeVggPHp5eC52aW1AZ21haWwuY29tPgAKCRCf3UKj
HhHSvu8xEACJearFWQR3HYeAV2G12pvCgKCYUIGhSTetmzBw52vh6yBepjQoq4qG
FyplLlRAa0XXAe9jakjNphnB45GzASnUHjtm/I/bmfJrHAISrFPwO9evsGWBDd2U
t3nV4e6he/fb636H6ZdCsnK7dJyp4ZvIgAylgcTchNfcJ/zgrAQZdj1dU+0rpFLw
I8NMAjBG65GUvmKVDZVivt9v8ljwnlhvgwi7TibvzKxKZjiMOWTIN3LShI3bwzjH
qyul0dBlP0DR8FUzVjJGDJyDGLXS4AIMswXc9Zws6qkDr35nd+emUxoOQjTvkkkP
fl7omQi3f1MaR5M5vsihdzMOGaQ5Hkh3CJ5PFxGHKOkbwdugTqRBKYdSGeS5irou
iuSF9ZbNUsdn+bNs4TfeQ4VnS2gGz4Vm70guXVduMZU+e38Lf34cuoW0/94owxTf
ZHUXOSaKHcXw4PrpLHkeGaQTz915LIX/a3vySzDjM7yFzvpKrTPHLCJFWIF5+lPh
bB3u0EsIvYZHWhTvKu6C33ahUPbzidUEdPTfd0ef9pN/jJUJTCjuqyOjNHp4Ns/s
Kz+xuHQSmL3dX/Nc9gMlcHZzO2bJD27iepswAwmAr56dvGXiepoyRlrpoApSbPY3
BLlAQvSm/A3cVr8WJcq/2I+DVpabl4e5ziFC9vz22jsDkaBHu+jmrg==
=z0oD
-----END PGP SIGNATURE-----