FG
💻 Software

How can I execute a Vim selection or range in bash without replacing it?

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

Problem

I'd like to select some text in vim and then execute it in bash. I know of the following procedure: select text using or However, this replaces the selection with the output of the command. What if I don't want that?

Error Output

V

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I execute a Vim selection or range in bash without replacing it?

Low Risk

Type the command like this: As you type it, it will appear like this: See

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment