Tuesday, May 4, 2010

Re: escape sequence in output

On May 3, 4:13 am, Mathieu Zhang <lingfe...@yahoo.com> wrote:
>
> I am working in a project in which someone else wrote a makefile with
> a lot of fancy coloring.  When I type :!make, the output is scrolled
> through with a lot of escape sequence like "^]0;30;"  for color,
> making it completely unreadable.  Can I have vim either (1) interpret
> those escape sequence and make for colorful output, or (2) ignore and
> don't print them?
>


Chip gave you a potential solution that will give you option (1).

Assuming you're working on a *nix system, I believe you could add '|
col -b' to your 'makeprg' or 'shellpipe' options to accomplish option
(2).

I just recently learned about 'col -b' from a Vim tip about using Vim
as a man page viewer. Very useful! Especially if you don't have the
conceal patch that Chip mentions.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: