FG
💻 Software

how do I copy/paste in vim ex mode

Fresh7 days ago
Mar 15, 20265317 views
Confidence Score0%
0%

Problem

I'm increasingly frustrated by typing this :%s/some_really_long_string/some_other_really_really_long_string_that_may_or_may_not_related_to_the_first_one/gc Is there any way to copy/paste those strings in ex mode?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: how do I copy/paste in vim ex mode

Low Risk

You can use Ctrl-R to insert the value of a register on the Ex command line. If you've yanked some text into the default register, for example, you can recall it with Ctrl-R". There are shortcuts for some common cases, too. You can insert the curren…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment