>
>
> On 2008-11-20, fREW Schmidt <[EMAIL PROTECTED]> wrote:
> > On Thu, Nov 20, 2008 at 3:11 PM, Tim Chase <[EMAIL PROTECTED]>
> wrote:
> >
> > >
> > > > At some point I knew a command that you could use to paste
> > > > visually selected text (or something along those lines) into
> > > > the ex command box.  I couldn't find it in the docs but I
> > > > presume I didn't know where to look.  Any tips?
> > >
> > > as far as I know, there's no command to bring in the visually
> > > selected text *without yanking first*.  However, once you have it
> > > yanked into a register, you can do as Shawn suggested with the
> > > control+R followed by the register identifier
> > >
> > >   :help c_CTRL-R
> > >
> > > -tim
> > >
> > > Thanks, both of you!
> >
> > What about going (almost) the other direction; I typically type a search
> > with / when I mean to do :s/.  Is there a way to fix that?
>
> Sure.  The last search string is saved in the / register, so after
> you've typed
>
>   :s/
>
> you can then type Ctrl-R followed by / and your search string will
> appear after the :s/.  See also
>
>   :help quote/
>
> Regards,
> Gary
>

Awesome!

Thanks Gary.
-fREW

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to