Wednesday, February 11, 2015

Use contents of register in search?

This is probably one of those "You use vim and don't know how to do
that?!?!" things, but I'd like to be able use the contents of a register
in a search. I often have some text and want to find out where else that
text occurs. I can get the text into a register, but then would like to
search for that text. :help /, :help pattern, and usr_27.txt don't
contain "register" at all, and :help search does, but that's all about
manipulating registers in vimscript, so I don't know how/if that applies.

Thanks much,
Brian

--
--
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/d/optout.

No comments:

Post a Comment