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

vim can't use dark theme

Open mapleray opened this issue 11 years ago • 34 comments

Hello, it's so awesome using Gvim with the solarized dark theme, But when I use vim ,it's just the light theme,whatever I do with the configurations. I want to use the solarized dark theme in vim ,so what should to do? (I have done all things in README.mkd )

mapleray avatar Jun 10 '13 14:06 mapleray

I have the same issue. OS X snow leopard, iterm2. The theme just looks like this

screen shot 2013-06-14 at 01 53 42

I can fix this by changing the terminal palette to the one provided by Solarized but I dont want to change my colors in Iterm. And considering that solarized light is working , I dont understand why I shouldnt be able to see the dark theme?

I don't know if this helps, but if I'm in the "dark" mode and set syntax enable or syntax on after the color solarized the theme will turn into Solarized Light. Don't understand why.

parhamfh avatar Jun 13 '13 23:06 parhamfh

@parhamfh
the same as yours . When I added call togglebg#map("<F5>") in .vimrc ,and use <F5> ,the result is the same as the picture you showed.
maybe this can help: https://github.com/KevinGoodsell/vim-color-check/blob/master/color-scheme-recommendations.txt#L131

mapleray avatar Jun 14 '13 04:06 mapleray

Same issue in Ubuntu 13.04 running VIM 7.3.547

EDIT: I was able to get it working properly using the debugging steps here: https://github.com/spf13/spf13-vim/issues/240

I was using xterm rather than xterm-256. This was revealed by running echo $TERM

Hopefully this helps someone having the same issue

rudedogg avatar Aug 17 '13 19:08 rudedogg

set let g:solarized_termcolors=16 And use in your iterm2 solarized color scheme

artofhuman avatar Aug 31 '13 09:08 artofhuman

thank you

张春霖

-------- 原始邮件 -------- 发件人:Semen [email protected] 时间:周六 8月31日 17:20 收件人:altercation/vim-colors-solarized [email protected] 主题:Re: [vim-colors-solarized] vim can't use dark theme (#72)

set let g:solarized_termcolors=16 And use in your iterm2 solarized color scheme


Reply to this email directly or view it on GitHub: https://github.com/altercation/vim-colors-solarized/issues/72#issuecomment-23603428

zcunlin avatar Sep 02 '13 14:09 zcunlin

Same issue under the gnome-terminal in ubuntu 14.10.

I have export TERM=xterm-256color in .zshrc and correct output of all 256 colors (https://github.com/den-mentiei/dotfiles/blob/develop/check-colors.py).

In .vimrc:

let g:solarized_termcolors = 256
set background=dark                                                         
colorscheme solarized

And the colors are now just wrong. Light background works though.

den-mentiei avatar Dec 14 '14 18:12 den-mentiei

Same here. The dark theme is not working as expected, while the light is ok. screen shot 2015-01-18 at 12 47 48 pm screen shot 2015-01-18 at 12 48 19 pm

everthis avatar Jan 18 '15 04:01 everthis

me too, who can fix it? need for help

winds18 avatar Jan 29 '15 13:01 winds18

BTW, the dark theme is not working as expected on debian 7.

everthis avatar Jan 30 '15 06:01 everthis

on the terminal of mac, i solved it

let g:solarized_termtrans = 1

add above to .vimrc, it works as expected

winds18 avatar Jan 30 '15 16:01 winds18

add

let g:solarized_termtrans = 1

won't help.

everthis avatar Jan 31 '15 05:01 everthis

use terminal with solarized dark theme @everthis

winds18 avatar Jan 31 '15 07:01 winds18

I just fixed this problem by installing the Solarized theme for iTerm, following this instruction.

Hope that helps

lvarayut avatar Sep 16 '15 15:09 lvarayut

If you want to use solarized on terminal, you must install solarized for your terminal, otherwise only the light version will work(if you set let g:solarized_termcolors=256 in your vimrc)

ysheng26 avatar Sep 16 '15 22:09 ysheng26

@everthis

I don't think the light theme in screenshot works as expected, the background color is not like in gVim or Macvim.

Leeiio avatar Mar 30 '16 13:03 Leeiio

"Solarized Color Scheme Settings

set t_Co=256
syntax enable
let g:solarized_termtrans = 1                                                   
let g:solarized_termcolors=256                                                  
set background=light or set background=dark
colorscheme solarized

warning Do not miss the order

blackode avatar Aug 31 '16 08:08 blackode

@blackode It won't help.

Leeiio avatar Aug 31 '16 08:08 Leeiio

@Leeiio May be the vim using the degrading colors . Change the two following lines as like so

set t_Co=16                                                                                                                      
let g:solarized_termcolors=16 

It works in most cases.........

blackode avatar Aug 31 '16 18:08 blackode

@blackode Thanx, but won't work :( The color is also like this

Leeiio avatar Sep 01 '16 01:09 Leeiio

@blackode Look this https://github.com/altercation/vim-colors-solarized/issues/142

Leeiio avatar Sep 01 '16 01:09 Leeiio

@Leeiio After looking into your screen shot it is slightly different from what is have suggested things This is how your vimrc file should look like ..

set t_Co=16
syntax enable
let g:solarized_termtrans = 1                                                   
let g:solarized_termcolors=16                                                  
set background=light
colorscheme solarized

blackode avatar Sep 01 '16 03:09 blackode

@blackode Won't work but i found this https://github.com/altercation/vim-colors-solarized#important-note-for-terminal-users So it depends on Terminal's colorscheme...Pity :(

Leeiio avatar Sep 01 '16 06:09 Leeiio

@Leeiio all the above solutions works only if your terminal built in color scheme is either one of the solarized-dark or solarized-light At Initial I thought you have been set to one of above schemes If still fails after setting try using 16 colors one as above one stated

blackode avatar Sep 01 '16 06:09 blackode

I have the same problem, kindly tell me is it resolved?

wenpengfei avatar Dec 18 '16 17:12 wenpengfei

what problem?

发自我的 iPhone

在 2016年12月19日,01:00,catwen [email protected] 写道:

I have the same problem, kindly tell me is it resolved?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

DavionKnight avatar Dec 19 '16 14:12 DavionKnight

@DavionKnight set background=dark, but it display gray in ubuntu 16.04

wenpengfei avatar Dec 21 '16 12:12 wenpengfei

@wenpengfei Having the same problem on Ubuntu 16.04.

screenshot from 2016-12-29 09-55-43

serv avatar Dec 29 '16 17:12 serv

Thanks to all people commenting to this issue, below configuration works for me on an Ubuntu LTS based distro called Linux Lite. But first make sure to set your terminal's colorscheme to either solarized dark or solarized light according to your vim background preference. I also start my terminal emulator with a custom command:

env TERM=xterm-256color bash

but it seems working without this setting. I also don't set that environment variable in my .bashrc file as you may find it suggested on the internet.

I'm using Terminator and this is the relevant settings page for people who may need it. terminator

set t_Co=256
syntax on
let g:solarized_termtrans = 1
let g:solarized_termcolors=256
let g:solarized_visibility = "normal"
let g:solarized_contrast = "normal"
set background=dark " or light
colorscheme solarized

vim

tricarte avatar Apr 08 '17 05:04 tricarte

As far I understand, there is currently no way to get the correct dark color scheme without adjusting the terminal colors? I experience the same problems described above.

kleinfreund avatar Apr 11 '17 08:04 kleinfreund

I'm fairly certain it was possible to get these colors at least half a year ago (without setting the terminal color palette), when I first installed vim-colors-solarized.

Don't get me wrong, but I don't want to mess up other terminal applications by using the solarized color palette.

samupl avatar Jun 27 '17 08:06 samupl