rakr / vim-one

Adaptation of one-light and one-dark colorschemes for Vim
MIT License
1.98k stars 196 forks source link

How to change the background color? #107

Open LukaszBielsko opened 4 years ago

LukaszBielsko commented 4 years ago

I took me two days, to no avail. I know how to change the syntax color, but background change is still a mystery.

Any help appreciated.

Torbet commented 4 years ago

have you figured it out? same question

akinsho commented 4 years ago

Not sure exactly what you mean but if it's switching between light and dark its

set background=light " or dark

If you mean change the background color of the colorscheme think you can do

one#highlight('Normal',  'foreground', 'background' 'gui options') " more details in the readme
Torbet commented 4 years ago

I wanted the background to be #ffffff instead of dark grey, figured it out now though

LukaszBielsko commented 4 years ago

I wanted the background to be #ffffff instead of dark grey, figured it out now though

Pls do share it with us. Thanks.

Torbet commented 4 years ago

I switched over to this theme where in the autoload/onedark.vim I changed black to #ffffff and the term value to 0. It did not work without the cterm value change. Looking at the source for this theme, dark is tied to a value of 1 on like 294, perhaps try changing that to 0? otherwise I would recommend the other one dark theme, very good so far!

ghost commented 3 years ago

It worked for me on neovim v0.4.4.

colorscheme one
set background=light
au ColorScheme * highlight Normal ctermbg=231