Tony Mechelynck wrote: > On 15/08/10 23:59, Benjamin Esham wrote: > >> I am the maintainer of the biogoo color scheme [1] and a user recently >> e-mailed me to remark that when 'cursorline' is on and the current line >> includes a misspelled word, that word disappears (it's displayed as >> white text on a white background). [...] >> >> I could just set CursorLine and Column always to use black text, but >> that would pretty much destroy highlighting on the current line (this >> color scheme mostly differentiates different elements by using different >> text colors). Is there any way to do conditional processing so that the >> color of SpellBad text changes if the CursorLine is intersecting it? >> >> (If not, I could change SpellBad to be dark red text on a light >> background, so that such words are still apparent with the CursorLine >> on.) >> >> [1] http://www.vim.org/scripts/script.php?script_id=432 >> > Or maybe use a more distinctive undercurl, and dispense with guibg guifg > in the SpellBad highlight altogether? Something like > > hi SpellBad gui=undercurl guisp=red > > perhaps? > > Another possibility is to have CursorLine and CursorColumn differ only > slightly from the Normal bg color: for instance, I have Normal set to use > guibg=white guifg=black (the gvim default), and my CursorLine and > CursorColumn use guibg=#F4F4F4 (about 96% grey, which I can still see > against the white bg, but doesn't disturb me when I'm looking for > something else) and guifg omitted so most syntax colours remain > distinctive.
Hi Tony, I ended up going with inverting the previous spelling colors, so that e.g. a spelling error is dark red text (with a dark red undercurl) on a light gray background, instead of light gray with a light gray undercurl on a dark red background. That seems to have fixed the problem with CursorLine et al. Cheers, -- Benjamin D. Esham | [email protected] “I cannot and will not cut my conscience to fit this year’s fashions.” — Lillian Hellman
PGP.sig
Description: This is a digitally signed message part
