Zyx wrote:

> On October 29, 2014 10:54:38 PM EAT, Bram Moolenaar <[email protected]> 
> 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.

How would an external command access text in a buffer?  Would have to
write them into a file.

If regex is incomplete we could perhaps fix that.


-- 
"A mouse can be just as dangerous as a bullet or a bomb."
             (US Representative Lamar Smith, R-Texas)

 /// Bram Moolenaar -- [email protected] -- 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui