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.

-- 
PRINCE:    He's come to rescue me, father.
LAUNCELOT: (embarrassed) Well, let's not jump to conclusions ...
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui