开发者

Enable colored output in mvim

I'm running rspec from within mvim with :!rspec spec/lib, however if I include --color flag, I get

[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m

Finished i开发者_如何学Gon 0.01708 seconds
[32m7 examples, 0 failures[

I tried --tty flag which works with rstakeout, but no help.


Unfortunately this is not possible.

MacVim does it's own graphics rendering, which is not implemented as/via a terminal emulator, so it has no concept of ANSI color codes etc. I believe I remember the author of MacVim commenting that this will never be supported, which is a shame.

When I was using MacVim, I'd run rspec --no-color to at least avoid the escape sequences cluttering the output.

I've since switched to vim (running inside tmux in full-screen iTerm2) and it's nice to get back the color output of console commands.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜