Larry Alkoff <[EMAIL PROTECTED]> 写于 2006-11-21 17:25:13: > I'm using Vim64 in Kubuntu and cannot change the color background when > doing a search. The background color is a kind of darkish orange - I > _think_ it's numbe 3. I'd like to have LightYellow but nothing I have > done so far changes it. > " result of :hi search is > " xxx term=reverse ctermbg=3 (orangy) 14 is ltyellow
Usually, it is impossible to set a ctermbg to 8 or above for terminals, especially when you have t_Co=8, i.e. your terminal is 8-color terminal. Sometimes, manually :set t_Co=16 does the trick, if that works for you, then just do it. But it may not work. If you still want a light background, there're several solutions: 1. Get a terminal emulator with fully 16-color support, or even 256-color terminal emulator which has support for ctermbg >= 8. --- this works for yourself. 2. Do not use ctermbg >= 8 when designing color schemes. Note this is important if you want your color scheme portable, because many terminal emulators cannot have light background. --- this works for everyone. HTH. -- Sincerely, Pan, Shi Zhu. ext: 2606
