Thursday, April 28, 2011

MAC OSX vim colors mangled

Here's my setup

  • Mac OSX 10.6
  • VIM (default version that comes with OSX 10.6)
  • rails.vim (installed in .vim/autoload)
  • ir_black.vim (installed in .vim/colors)
  • i have "colorscheme ir_black" and "syn on" in ~/.vimrc

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.

From stackoverflow
  • 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).

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

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

    iljkj : Thank you for the answer. Is there a terminal command to see how many colors the current terminal supports? I googled but can't find anything.
    Bryan Ross : I can't find one either. I did find `infocmp`, however, that reports 256 colors in Terminal.app, which is incorrect.

0 comments:

Post a Comment