vim-colors-solarized icon indicating copy to clipboard operation
vim-colors-solarized copied to clipboard

background color is grey

Open ghost opened this issue 10 years ago • 11 comments

terminal_001 How to fix it?

In .vimrc

call plug#begin('~/.vim/plugged')
    Plug 'altercation/vim-colors-solarized'
call plug#end()

let g:solarized_termcolors=256
set t_Co=256
syntax enable
set background=dark
colorscheme solarized

ghost avatar Jul 23 '15 15:07 ghost

Depends on your terminal, try to disable "g:solarized_termcolors=256" first.

shuLhan avatar Jul 30 '15 05:07 shuLhan

Then background ok, but only 16 colors available; this is bad. https://github.com/romainl/flattened#256-colors

ghost avatar Aug 17 '15 07:08 ghost

I had the same issue.. Things to take care of:

  1. I have iterm2, so I installed solarized theme for it & make sure it's using xterm-256color terminal type.
  2. Do this in your .vimrc set background=dark let g:solarized_termcolors=16 "this is what fixed it for me colorscheme solarized You're done !

PezCoder avatar Sep 09 '16 17:09 PezCoder

thanks @PezCoder , but I think below to improve your code:

  set background=dark
  let g:solarized_termcolors=256 "this is what fixed it for me
  colorscheme solarized

vhp1360 avatar Dec 21 '16 10:12 vhp1360

For others that come across this, here's a better fix that does not degrade the colors:

set background=dark
let g:solarized_termtrans = 1 " This gets rid of the grey background
colorscheme solarized

genebean avatar Oct 15 '17 23:10 genebean

none of them is working for me. however Light theme is working.

spidyshivam avatar Apr 04 '18 14:04 spidyshivam

I am using SpaceVIm configuration with Solarized theme but background keeps grey, Please help me

spidyshivam avatar Apr 04 '18 14:04 spidyshivam

"t g:solarized_termtrans = 1" means transparent?

if so, changing the value can change mccvim's background color.

JerryCui avatar Jun 07 '18 00:06 JerryCui

I had this issue also but I also had lines from above comment in my .vimrc though they were inside if !has('gui') ... endif block. I thought that gui flag is set to true only if I run vim GUI but actually it says that GUI support has been compiled into vim binary. To detect that vim GUI is running gui_running flag must be checked. See https://github.com/vim/vim/issues/1481

mxl avatar Jul 07 '18 12:07 mxl

let g:solarized_termcolors=256
set t_Co=256
syntax enable
set background=dark
colorscheme solarized

Worked for me, for both dark and light theme.

anthonytwh avatar Jul 27 '18 04:07 anthonytwh

I still don't see the bluish color with the following config: Screen Shot 2021-07-16 at 5 28 02 AM

zendevil avatar Jul 16 '21 12:07 zendevil