Solar theme on Vim + Terminator + Ubuntu 11.10

I am trying to set up a sunny theme for vim on Terminator, but it doesn’t work. :-( I have been successfully configured to solarize for the terminator, but it just doesn’t work for vim. Here is my .vimrc

call pathogen#infect()
filetype plugin indent on
syntax enable
set background=dark
"set t_Co=16
"let g:solarized_termcolors=16
let g:solarized_visibility = "high"
let g:solarized_contrast = "high"
colorscheme solarized

$TERM is set to xterm

I also tried this with the two lines above uncommented, but still not working.

Can someone please tell me what I am doing wrong?

Thank!

Edit: solarized vim

+5
source share
3 answers

Pretty sure you don’t need to import the vim color theme, since you already set up the color scheme for the terminator. At least that was the only way to make him play well after lots of trial and error.

Here is a screenshot of my vimrc, from vim, in the terminator:

enter image description here

,

colorscheme solarized

, - , -, !

ps , - , .

+8

vim colorscheme readme, , .

github repo, .

, : P, - , .

( ):

[[solarized-dark]]
  palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3"
  cursor_color = "#eee8d5"
  foreground_color = "#eee8d5"
  background_color = "#002b36"

:

syntax on
set t_Co=16
set background=dark
colorscheme solarized

, :

  • set t_Co=16 , 16 (, ). , (, ).

  • set g:solarized_termcolors=16 , : .

  • 256 ( , : P). , , 256- "", 16- . , , , 256 > 16. , "", :

    set t_Co=256
    set g:solarized_termcolors=256
    
  • CLI , Seebi dircolors (?) github.

+13

Try adding this to your .vimrc file

let g:solarized_termcolors=16

The rest of the settings in the screenshot are good.

0
source

All Articles