Sunday, June 14, 2015

Re: Regex "stealing" from another history

On 14.06.15 05:59, Meino.Cramer@gmx.de wrote:
> (I am using the terminal based vim on Gentoo Linux. The terminal
> is urxvt.)

OK, at least that's still X11.

> when trying to do complex regexp things, which even may be
> destructive to the text I use to try the regexp "pure" with
> "/" or similiar.
>
> Later, when the regexp do what I want it to do (READ:when I have
> managed to fix my faults in the regexp ;) I do the real thing
> like "s/ / /g" or such.

While there may be a way, using registers, simple is also attractive, I
think. I just use '/' <up-arrow> to retrieve the regex, highlight it
with the mouse, whack <escape> to clear the line, then middle-button-paste
it into the new command as it is entered. That way I don't have to
remember any of those funny registers. (Though that seemed easy enough,
decades ago.)

Erik

--
--
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: