I use cmake, which produces makefiles with nice colourful output, but when I :make from vim (well, actually MacVim, which is essentially gvim but I figure that doesn't make much difference), the output isn't coloured.

Is there a way I can declare the vim terminal type as xterm-colour, or something, so that commands output colour control characters? (or does vim not support this?)

link|improve this question
The Conque plugin for Vim is a terminal emulator (for builds that include Python support; MacVim qualifies). You could use it to run make and have its output interpreted (though I have seen reports of flakiness in Conque’s terminal emulation), but you would lose some of the integration provided by :make (i.e. automatic quickfix parsing; though you could set up some automation to parse (part of) the resulting buffer with :cbuffer). – Chris Johnsen Jul 13 '11 at 4:05
feedback

2 Answers

up vote 1 down vote accepted

The terminal used by gvim is a very dumb terminal. Among other things, it doesn't support ANSI color sequences. See

:help gui-shell

for a little on this. If you launch a shell from gvim (:sh), you can send ANSI color sequences to the "terminal" (e.g., ls --color=always) and you will see the escape sequences themselves, not colors.

link|improve this answer
feedback

No.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.