alxyzc
alxyzc

Reputation: 1061

Vim color scheme overriding the background settings in Gnome Terminal

I have set my gnome-terminal's background to dark-blue, with a bit of transparency so I can see the underlying webpages or other documents when I code.

I've been using the smyck color scheme, which appears to be my terminal background as its background, so it looks seamless when I enter Vim.

my terminal window on top of a web page (my terminal window on top of a web page)

the very same terminal window entering vim (the very same terminal window entering vim)

Lately I decided to switch to some other color scheme. As I was trying out jellybeans, I noticed that it has overridden my default terminal background settings, both its color and transparency, as you can see below.

the very same terminal window entering vim now with jellybeans (the very same terminal window entering vim now with jellybeans)

I have installed the AfterColors plugin, but I don't know where to start to tweak the color scheme to have the default background back. Any suggestioins?

Upvotes: 60

Views: 28353

Answers (2)

liuyang1
liuyang1

Reputation: 1725

In addtional of perreal's answer, you also need to

highlight NonText ctermbg=none

this will help make other "nothing exist" region to be transparent.

Upvotes: 45

perreal
perreal

Reputation: 98118

Set the ctermbg to none:

hi Normal ctermbg=none

Upvotes: 99

Related Questions