2

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?

Phil Gyford
  • 13,432
  • 14
  • 81
  • 143
  • 1. is a problem in your `.vimrc`, 2. seems to be a bug in `airline`, 3. is a good question for `airline` developers. – lcd047 Jun 15 '17 at 17:16
  • Thanks. I realise there's a problem in my `.vimrc`, caused by that one line, which I copied from the airline help. So I couldn't work out why it was a problem. – Phil Gyford Jun 16 '17 at 08:38

1 Answers1

2

The answer to (1) is in two parts:

  • I had a colon at the end of the line before the call line, which was causing the error.
  • I am an idiot.
Phil Gyford
  • 13,432
  • 14
  • 81
  • 143