Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
1  
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
add comment

2 Answers 2

up vote 4 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.

share|improve this answer
add comment

No.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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