Yakov Lerner wrote:
> On 9/30/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
> >
> > Sometimes people ask me for a command to search for the text that is
> > currently visually selected. You could add a mapping for the '/' key,
> > but then you lose the possibility to extend the visual area by
> > searching for a pattern.
> >
> > Since we might need more commands in Visual mode later, and we only have
> > a few keys left to be used, we need to use two key combinations for
> > new commands in Visual mode.
> >
> > I think we can start using the '&' key. Currently it doesn't do
> > anything. For now we could add the commands:
> >
> > &/ search for the Visually selected text forward
> > &? same, backward
> >
>
> Do you plan to treat visual selection as pattern, or a literal text-to
> search ?
Literal text would be most useful. For a pattern I would expect it to
be more useful to copy it from one file (e.g., help text or a Vim scrip)
and search for it in another file.
--
CRONE: Who sent you?
ARTHUR: The Knights Who Say GNU!
CRONE: Aaaagh! (she looks around in rear) No! We have no licenses here.
"Monty Python and the Holy editor wars" PYTHON (MONTY) SOFTWARE LTD
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///