Follow

TIL: In Vim, yank some text into a register, yw and what have you... by default the registers are 0 and ".

You can paste the text of any register by doing <CTRL-R>X where X is the name of the register (so 0 or " by default).

This is all to say, you can do /<CTRL-R>0 and it will search forward for the yanked text.

Neat.

Sign in to participate in the conversation
Ronin.World

Mastodon is a federated social network composed of instances. This particular instance is a portal into that social network, and a support group for workers of all types.