Friday, November 15, 2013

Re: Search for the visually select text

Hi Paolo,

On Fri, 15 Nov 2013 10:42:07 +0100
Paolo Bolzoni <paolo.bolzoni.brown@gmail.com> wrote:

> Dear list,
> seldom I need to search specific part of text that are not simply the current
> word (where * is handy). And I instinctively select the part visually, only to
> notice I do not know how to search for it in the whole text.
>
> Example, assuming the caret is on the beginning of the sequence I want to
> seek, I tend to do:
> vwwe
> and I am stuck. Is there a way to search for what I have selected?
>

You can then yank it using «y» and use it in the search bar (after pressing /)
using Ctrl+R+" or whatever register you've placed it there.

Regards,

Shlomi Fish

--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Beginners Site for the Vim text editor - http://vim.begin-site.org/

Sophie: Let's suppose you have a table with 2^n cups…
Jack: Wait a second! Is 'n' a natural number?

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: