You can use Ctrl+ R, and then ", to insert the contents of the default register into a command /or command :. If you did yank with yy, then the text will be in the default case, so that will be what you want.
If the text you want was entered in a register other than the default, then just use the letter or register number instead ", for example. Ctrl+ R, zto insert the contents of register z.
Find the documentation for the command line to CTRL-Rfor more information and special registers that can be used.
source
share