Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change VIM underlines colors

Tags:

vim

I'm an author of a VIM colorscheme (danger.vim) and I'd like to change some colors that I can barely see.

This is how it looks in Solarized:

enter image description here

This is how it looks in my theme:

enter image description here

As you can see, it's hard to see the underlines at import sys. I'd make them probably lighter blue, and bold.

I use the Syntastic plugin to integrate with Pyflakes and JSLint mainly.

I also use Flux, probably a reason why it's even harder to see.

like image 789
igorgue Avatar asked Sep 05 '11 04:09

igorgue


2 Answers

In your colorscheme file at:

hi Error   guifg=NONE guibg=NONE gui=undercurl ctermfg=white ctermbg=red cterm=NONE guisp=#FF6C60 " undercurl color

Change the part after guisp to the color you want.

i.e.

hi Error   guifg=NONE guibg=NONE gui=undercurl ctermfg=white ctermbg=red cterm=NONE guisp=#FFFFFF " undercurl color

will make the underlines white

edit: You can make errors bold by change gui=undercurl to gui=bold,undercurl

like image 138
Alan Avatar answered Sep 28 '22 11:09

Alan


Seems like Syntastic shows warnings as spell errors, so all I had to do was to define:

SpellBad    word not recognized         |hl-SpellBad|
SpellCap    word not capitalised            |hl-SpellCap|
SpellRare   rare word               |hl-SpellRare|
SpellLocal  wrong spelling for selected region  |hl-SpellLocal|

In my colorscheme file.

like image 43
igorgue Avatar answered Sep 28 '22 10:09

igorgue