I don't like this one more, but it's a good alternative:
        g/
        g?

Also, I feel that one day "&" might do something in visual; at least
visual line mode.

--Matt

On Sat, Sep 30, 2006 at 01:37:59PM +0200, Bram Moolenaar 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
> 
> Is there a good alternative?
> 
> -- 
> Any resemblance between the above views and those of my employer, my terminal,
> or the view out my window are purely coincidental.  Any resemblance between
> the above and my own views is non-deterministic.  The question of the
> existence of views in the absence of anyone to hold them is left as an
> exercise for the reader.  The question of the existence of the reader is left
> as an exercise for the second god coefficient.  (A discussion of
> non-orthogonal, non-integral polytheism is beyond the scope of this article.)
>                                               (Ralph Jennings)
> 
>  /// 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    ///

Reply via email to