开发者

Bad command output in MacVim

I'm going throu开发者_Python百科gh the Django tutorial http://docs.djangoproject.com/en/1.2/intro/tutorial01/#activating-models, which outputs colorized SQL snippets via python manage.py sql polls. I'm working with MacVim and it seems that it does not understand the output properly. See screenshot.

Bad command output in MacVim


This is happening because the terminal emulator supplied by MacVim isn't a fully-functional terminal (i.e. one capable of supporting ANSI escape codes), but it looks like it's claiming to be. You might try this vimscript which claims to be able to colourize files with ANSI escape codes.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜