Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing error highlight color used by syntastic

Tags:

vim

syntastic

How can the highlight color used by vim syntastic to mark the errors/warnings in code be changed. The error highlighting is enabled by default and can be changed using g:syntastic_enable_highlighting variable.

like image 975
system64 Avatar asked Jul 16 '13 13:07

system64


1 Answers

You can add these lines to your ~/.vimrc after the last colorscheme line:

hi SpellBad ctermfg=www ctermbg=xxx guifg=#yyyyyy guibg=#zzzzzz
hi SpellCap ctermfg=www ctermbg=xxx guifg=#yyyyyy guibg=#zzzzzz

with www/xxx three digit colors taken from this palette and #yyyyyy/#zzzzzz whatever hexadecimal color you want.

You can also edit the relevant lines in your colorscheme.

like image 180
romainl Avatar answered Nov 15 '22 10:11

romainl