FG
💻 Software

how do I use a variable content as an argument for vim command?

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

Problem

for example suppose I did and now I want to perform but use variable instead of the literal string. outputs , but just looks for foo UPDATE: building a string of command and then running :execute on it is not a solution, its a hack. And it breaks with any non-trivial variable values.

Error Output

:let foo=pattern

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 use a variable content as an argument for vim command?

Low Risk

what about:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment