FG
💻 Software

In Vim, how can I search for the contents of a register?

Fresh5 days ago
Mar 15, 20262771 views
Confidence Score0%
0%

Problem

Say I've yanked the text "foo" into register . How can I search my file for the contents of that register? I know that I can type to search, then followed by to paste the contents of that register, leaving me with . But I'm trying to use the name of the register instead. For example, I tried , but …

Error Output

x

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: In Vim, how can I search for the contents of a register?

Low Risk

That's basically the easiest way to do it. If you want to script it, you could use something like this:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment