How to change the Vim Syntastic warning color in Airline using Solarized theme

时间:2017-06-15 10:00:20

标签: vim vim-airline vim-syntastic

I'm using vim-syntastic and vim-airline using the solarized color theme.

When syntastic has a warning it displays in black on red, which is barely readable:

enter image description here

After reading the airline help I've tried something like this in my .vimrc:

call airline#parts#define_accent('syntastic', 'yellow')

which seems to have an effect, although 'yellow' is about the only color that is readable and noticeable:

enter image description here

But I have three questions:

  1. I get an error when opening MacVim due to that call line:

    $ mvim index.html 
    Error detected while processing /Users/phil/.vimrc:
    line  304:
    E15: Invalid expression: 0:
    

    How do I prevent that?

  2. I still get a bit of the error color at the right-edge of airline when there's no syntastic error:

    enter image description here

    How do I prevent that?

  3. Is this the right way to do this?

1 个答案:

答案 0 :(得分:1)

(1)的答案分为两部分:

  • 我在call行之前的行尾有一个冒号,导致错误。
  • 我是个白痴。
相关问题