s activates the select command, prompting for a regex. I want to use this to test a regex that I will then use elsewhere.
s, entering a regex string, then confirming with
<enter>, did that regex I just typed out get saved to a register? If I press
s again, it shows as the last used selection term, but this doesn’t seem to be stored in any of the registers shown by
Note that I’m after the regex itself, and not the text it selected.
If I press
s, then type a regex, for example, “defn \w+”, then press enter, I would like to paste that regex somewhere using
"rp (or whatever that register is).