开发者

Bad command output in MacVim

开发者 https://www.devze.com 2023-02-05 21:26 出处:网络
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

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

精彩评论

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