Vim Tips Wiki


1,613pages on
this wiki
Revision as of 17:18, January 23, 2014 by TIman (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Use this page to discuss script 302 AnsiEsc: ansi escape sequences concealed, but highlighted as specified

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on
  • This page may be out of date: check the script's page above, and its release notes.

Not hiding an escape sequenceEdit

I have a log file which contains Ansi Escape sequence <1b>[H<1b>[2J

AnsiEsc plugin does not hide these escape sequences. Shouldn't it hide them?

The escape sequence are created by the "clear" command:

$ clear > foo.txt

and foo.txt contains <1b>[H<1b>[2J

-- Dominique 2010/06/17


Running the following command, I would expect to see the word "foo" with color. But AnsiEsc does not show any color:

$ echo "foo bar" | grep --color=always foo | vim -c AnsiEsc

The terminal codes (output of grep) are:

<1b>[01;31m<1b>[Kfoo<1b>[m<1b>[K bar

right color with more

problem with demo Edit

=> I used Vim with Debian 7.X

more AnsiEsc.txt

right color with more

Display good color but have a look on

vi AnsiEsc.txt


with AnsiEsc

don't show same color, and the problem is when tag is combined (the logo VIM is only in black and white and it should be not)

Around Wikia's network

Random Wiki