Comments (34)
"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
from vim-colors-solarized.
on the terminal of mac, i solved it
let g:solarized_termtrans = 1
add above to .vimrc
, it works as expected
from vim-colors-solarized.
add
let g:solarized_termtrans = 1
won't help.
from vim-colors-solarized.
set let g:solarized_termcolors=16
And use in your iterm2 solarized color scheme
from vim-colors-solarized.
@blackode It won't help.
from vim-colors-solarized.
@wenpengfei Having the same problem on Ubuntu 16.04.
from vim-colors-solarized.
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.
from vim-colors-solarized.
@DavionKnight set background=dark, but it display gray in ubuntu 16.04
from vim-colors-solarized.
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.
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
from vim-colors-solarized.
So, it's not possible to use the dark theme without setting the entire terminal to use solarized color scheme? I'm sure it was possible before. Could somebody point to a commit when this change was introduced? I'll be more than happy to use an older version if it means I don't have to set a terminal profile globally.
from vim-colors-solarized.
I have the same issue. OS X snow leopard, iterm2. The theme just looks like this
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.
from vim-colors-solarized.
@parhamfh
the same as yours . When I added call togglebg#map("<F5>")
in .vimrc ,and use ,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
from vim-colors-solarized.
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: spf13/spf13-vim#240
I was using xterm rather than xterm-256. This was revealed by running echo $TERM
Hopefully this helps someone having the same issue
from vim-colors-solarized.
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:
#72 (comment)
from vim-colors-solarized.
Same here.
The dark theme is not working as expected, while the light is ok.
from vim-colors-solarized.
me too, who can fix it? need for help
from vim-colors-solarized.
BTW, the dark theme is not working as expected on debian 7.
from vim-colors-solarized.
use terminal with solarized dark theme @everthis
from vim-colors-solarized.
I just fixed this problem by installing the Solarized theme for iTerm, following this instruction.
Hope that helps
from vim-colors-solarized.
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
)
from vim-colors-solarized.
I don't think the light theme in screenshot works as expected, the background color is not like in gVim or Macvim.
from vim-colors-solarized.
@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.........
from vim-colors-solarized.
@blackode Thanx, but won't work :( The color is also like this
from vim-colors-solarized.
from vim-colors-solarized.
@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
from vim-colors-solarized.
@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 :(
from vim-colors-solarized.
@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
from vim-colors-solarized.
I have the same problem, kindly tell me is it resolved?
from vim-colors-solarized.
from vim-colors-solarized.
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.
from vim-colors-solarized.
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.
from vim-colors-solarized.
The solution provided by @blackode here: #72 (comment) works for me.
Without it, my vim looks like @serv's noted here: #72 (comment)
Noting it is still an issue as of today (7/12) on Ubuntu 16.04.
from vim-colors-solarized.
The solution provided in #72 (comment) sets the background color.
However, some colors still look different from what is rendered in MacVim.
(In the following image, the window on the left is iTerm 2, and the one on the right is MacVim.)
Also, some background in vim-airline
is still broken. I am not sure if it is an issue in vim-airline
.
(In the following image, the window on the top is iTerm 2, and the other one is MacVim.)
from vim-colors-solarized.
Add set termguicolors
works for me.
My color scheme related settings:
syntax on
set termguicolors
let g:solarized_termcolors=256
set background=dark
colorscheme solarized
Iterm2, Tmux
from vim-colors-solarized.
Related Issues (20)
- Theme breaks after "?"
- termguicolors HOT 1
- Get rid of background on indentation HOT 1
- Background colors and foreground colors by same name are different HOT 2
- Syntax highlighting cursor misaligned on HyperTerm Windows
- How to use with vim8 packages? HOT 2
- [CRITICAL] Won't work with latest Vim build or any future builds in gnome-terminal HOT 9
- CursorColumn is not visible when let g:solarized_contrast = "low" HOT 1
- background is gray HOT 10
- How i can fix this
- Cannot get the solarized theme on neovim on Alacritty (or Kitty) on Linux HOT 4
- Spell highlighting not working HOT 5
- t_Co=16 is not working as expected as per documentation.
- Italics in vim didnt work
- Solarized Theme Not Working With Konsole Blur Background
- How to change `LineNr' highlight?
- How to change `LineNr' highlight?
- Cloning git timing out HOT 1
- Bad visibility on popups HOT 1
- Issues when using in conjunction with JupyterLab
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-colors-solarized.