FG
💻 Software

VIM: "sudo vim bad_idea"?

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

Problem

An irc-user in #Vim urged me not to use Sudo with Vim like: When I am doing things in locations such as /var/www/, I cannot write without it. So not-using sudo becomes a problem. Of course, I could make changes in different locations such as /tmp/ and then copy dirs to /var/www. However, I sense an…

Error Output

sudo vim bad_idea

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: VIM: "sudo vim bad_idea"?

Low Risk

I fall under the first category: is a bad idea; it allows shell escapes that aren't logged. Instead, use ; that has the same effect.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment