I use iTerm2 (Build 1.0.0.20130319) and Vim (bin of MacVim Snapshot 66) on top of OS X 10.7.5 as my CLI editing team.
iTerm2:
- Color scheme: Solarized Dark
- Terminal type: xterm
- Minimum contrast: lowest
- Transparency: none
- Dimming: disabled
- Background image: none
Vim:
set t_Co=16
set background=dark
colorscheme solarized
echo &t_Co
returns 16.
Generally I do not seem to have issues with a basic setup. But additionally I try to give "NonText" and "SpecialKey" characters a color value avaiable from the solarized color palette (palette can be found here).
highlight NonText ctermfg=0
highlight NonText guifg=#073642
highlight SpecialKey ctermfg=0
highlight SpecialKey guifg=#073642
The strange thing is while the "SpecialKey" group displays the "cterm" color value correctly, the "nonText" group does not. It seems that it displays the value 8 which is used by "ctermbg". As a consequence all "NonText" characters are not visible anymore. Both groups accept the "guifg" values btw.
Am I missing something which could interfere with my setup?
set t_Co=8
then "NonText" chars accept the given value. But then other problems arise. So not really a solution. – Saucierxterm
is 8, not 16. 2. Vim knows how to get the correct number of colors for the$TERM
it picked up when it started. If iTerm is set toxterm
, Vim correctly infers "8 colors" and you have absolutely no need to do anything in Vim. 3. Actually, setting term-related options to non-standard values or forcing them to values not supported by your terminal is quite a bad idea. – romainlxterm-256color
in this day and age. What is the problem withxterm-256color
? That yourNonText
doesn't work? – romainl