Assuming you are using this Jamie Moyers's Perl script for coloring
gcc output, it states that

# colorgcc will only emit color codes if:
#
#    (1) Its STDOUT is a tty and
#    (2) the value of $TERM is not listed in the "nocolor" option.

When you use it from vim, maybe the script sees that its STDOUT is
some buffer from vim and not a proper interactive terminal. I can only
say that I get the same behaviour using grep, but in that case grep
has an option to force colorized output.

For the colorgcc perl script, it seems there is an option to force
colorized output too, despite the tty thingy. Look here:
https://github.com/johannes/colorgcc/issues/4

Maybe you can try that.

Best regards,
Frederico


On Oct 15, 11:29 am, Sven Kämpf <[email protected]> wrote:
> Hallo all,
>
> I try to colorize my compiler output. It works, if I compile it
> outside vim. But if I use :make inside vim, the output is not
> colorized (no multiple colors).
>
> What am I doing wrong?
> Would you please help?
>
> Thx in advance
>
> PS:
>
> :set makeprg=color-g++\ $*     // PATH is set to color-g++
> :set shell=sh
> :set shellpipe=
>
> :make -> delivers volitional error messages, but not in multiple color
> for errors and warnings like mentioned in color-g++/color-gcc
>
> the commandline generated by ":make" works fine outside vim.

-- 
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

Reply via email to