Ubuntu – Terminator + vim + solarized

solarizedterminatorUbuntuvim

I'm trying to get Solarized to work with my Terminator and Vim on Ubuntu 11.10. I've tried all kinds of terminator configs I found all over the web, but I can't get the result the way I want it.

When I use gnome-terminal, I get the correct colours in Vim with:

" Pathogen initialization
call pathogen#infect()
se t_Co=256
" ...
if has("gui_running")
  syntax on
  set hlsearch
  " Solarized http://ethanschoonover.com/solarized/vim-colors-solarized
  set background=light
  " let g:solarized_termcolors=16
  colorscheme solarized
else
  syntax on
  set hlsearch
  " Solarized http://ethanschoonover.com/solarized/vim-colors-solarized
  set background=dark
  let g:solarized_termcolors=16
  colorscheme solarized
endif

But when I go back to Terminator, with the settings from this page, the background colour of my Vim seems to be too light, making it hard to read the actual content of the file.

Nothing I've come across has worked for me so far. Can somebody share a working combination of .config/terminator/config and .vimrc?

Best Answer

It is probably the setting:

let g:solarized_termcolors=256
Related Question