I am trying to set-up a simple vim colorscheme, which is black text on white background.
How do I make the background go White?
Based on bw.vim, however I am having a problem getting the background to go white, it goes gray instead.
hi Normal ctermbg=White ctermfg=Black
Gives the same result as:
hi Normal ctermbg=Gray ctermfg=Black
Although reversing them I can get White text on a black background.
Vim is running in an xterm with t_Co==8, Vim version:
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jul 4 2011 14:31:51)
Using Gnome Terminal 2.16, Which uses a 16 color palette although :
tput colors 8
The terminal is telling applications it has 8 colors, which is setting t_Co to 8 in Vim.
Vim is using this info and using 'palette entry 8' for White, which in my case was set to a medium Gray. Not sure if the real issue is an incorrect response from tput or the incorrect mapping of White to the palette.
Adding -256color to term makes tput return 256 and makes vim t_Co 256 as well.
setenv TERM $TERM-256color
Originally hesitant to blindly apply 256 color to any system I may be working on, but I think it would be rare to come across a terminal that does not support 256 colors these days. This would also have to be a system/network where I have already set-up my dotfiles.