vim-one icon indicating copy to clipboard operation
vim-one copied to clipboard

How to change the background color?

Open LukaszBielsko opened this issue 5 years ago • 6 comments

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.

LukaszBielsko avatar May 28 '20 13:05 LukaszBielsko

have you figured it out? same question

Torbet avatar Jun 05 '20 13:06 Torbet

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

akinsho avatar Jun 05 '20 13:06 akinsho

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

Torbet avatar Jun 05 '20 13:06 Torbet

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

Pls do share it with us. Thanks.

LukaszBielsko avatar Jun 08 '20 10:06 LukaszBielsko

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!

Torbet avatar Jun 08 '20 10:06 Torbet

It worked for me on neovim v0.4.4.

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

ghost avatar May 21 '21 07:05 ghost