Mac OS X vim颜色混乱 [英] Mac OS X vim colors mangled

查看:240
本文介绍了Mac OS X vim颜色混乱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的设置

  • Mac OS X 10.6
  • VIM(OSX 10.6随附的默认版本)
  • rails.vim(安装在.vim/autoload中)
  • ir_black.vim(安装在.vim/colors中)
  • 我在〜/.vimrc中有"colorscheme ir_black"和"syn on"

现在,当我进入终端并用vim编辑红宝石文件时,我的色彩混乱了.只有几种颜色出现,有些文本甚至闪烁.我想知道rails.vim语法高亮显示和ir_black配色方案之间是否有冲突?谁能帮我解决这个问题?我想使用ir_black配色方案.

Now when I go into terminal and edit a ruby file with vim my colors are messed up. There are only a few colors showing up and some text is even blinking. I'm wondering if there's a conflict between rails.vim syntax highlighting and the ir_black color scheme? Can anyone help me fix this? I would like to use the ir_black color scheme.

推荐答案

Snow Leopard中的Mac OSX Terminal.app 不支持256色,这是ir_black主题所必需的(这是我使用的主题).

The Mac OSX Terminal.app in Snow Leopard does not support 256 colors, which is required for the ir_black theme (this is the theme I use).

下载并尝试类似iTerm.app( http://iterm.sourceforge.net/)之类的方法,然后您应该不会对颜色有任何疑问.

Download and try something like iTerm.app (http://iterm.sourceforge.net/), and you shouldn't have a problem with colors.

或者您可以使用MacVim( http://code.google.com/p/macvim/)

Or you could use MacVim (http://code.google.com/p/macvim/)

从OSX 10.7 Lion开始,内置的Terminal.app现在支持256色.有关如何实现此目标的信息,请参见 Chris Page 下面的评论.

As of OSX 10.7 Lion, the built in Terminal.app now supports 256 colors. See the comment below by Chris Page for how to achieve this.

这篇关于Mac OS X vim颜色混乱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆