I managed to get the bold 0-7 colors right in tmux by exporting TERM...
And in doing so you broke several other things which will crop up over time leading you to post help requests here. Please do not explicitly set TERM. Do it right by setting the default-terminal setting in your tmux.conf
]]>By the way, I managed to get the bold 0-7 colors right in tmux by exporting TERM as xterm-256color and aliasing tmux to "tmux -2".
[1] http://ethanschoonover.com/solarized#the-values
]]>
That's what solarized dark looks like with set t_Co=256.
With set t_Co=16 the colors were okay:
]]>$ echo $TERM
rxvt-unicode-256color
Your .vimrc is setting the number of terminal colors to sixteen with the line, set t_Co=16. It should be:
set t_Co=256
In my .tmux.conf, I use this to set 256 colors:
set -g default-terminal "screen-256color"
I've also added the following...
To my ~/.bashrc:
export TERM="rxvt-unicode-256color"
And to ~/.tmux.conf:
set -g default-terminal "rxvt-unicode-256color"
Also, this is my vimrc, in case it helps:
set nocompatible
set t_Co=16
call pathogen#infect()
syntax on
set background=dark
colorscheme solarized
filetype plugin on
set cursorline
call togglebg#map("<F5>")
set mouse=a
set ttimeoutlen=100
set number
set ruler
set autoread
set tabstop=4
set shiftwidth=4
set expandtab
set smarttab
set autoindent
set list listchars=tab:•\ ,trail:·
set hlsearch
filetype indent on
set laststatus=2
function! CurDir()
let curdir = substitute(getcwd(), '/home/svxiii/', "~/", "g")
return curdir
endfunction
function! HasPaste()
if &paste
return 'PASTE MODE '
else
return ''
endif
endfunction
set statusline=%{&ff}\ \%{&fenc}\ \b%1.3n\ \%#StatusFTP#\%Y\ \%#StatusRO#\%R\ \%#StatusHLP#\%H\ \%#StatusPRV#\%W\ \%#StatusModFlag#\%M\ \%#StatusLine#\%f\%=\%1.7c\ \%1.7l/%L\ \%p%%
What terminal are you using?
Try a terminal with support for 256 colour, e.g. rxvt-unicode
]]>CSApprox skipped; terminal only has 16 colors, not 88/256
Try checking :help csapprox-terminal for workarounds
Press ENTER or type command to continue
Any way I can get rid of the error?
]]>Thanks for the guide + diffs.
1. The diffs don't seem to work for the latest st (0.5)
2. In your steps, in the section "Create your config.h and adjust the solarized colors":
--- you have this first:
$ cp config.def.h config.h
$ git add config.h
...but really I believe you want to apply the diff patches first, as the diff patches apply to config.def.h.