FG
💻 Software

How can I tell Vim to show ANSI escape codes properly?

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

Problem

I'm trying to view and edit a file in Vim, but this file has ANSI escape codes: How can I tell Vim to interpret them properly instead of just showing the raw code?

Error Output

^[[1m[0.05s elapsed, 00:00:13 total]^[[0m

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 tell Vim to show ANSI escape codes properly?

Low Risk

It sounds like you want to display ANSI colors and conceal their escape characters. You can do this with Charles Campbell's "AnsiEsc" plugin. Note that you will need Vim version 7.3 or newer. (Older versions of Vim could be patched, but that's more …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment