Vim color scheme overriding the background settings in Gnome Terminal

VimVim Plugin

Vim Problem Overview


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?

Vim Solutions


Solution 1 - Vim

Set the ctermbg to none:

hi Normal ctermbg=none

Solution 2 - Vim

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionalxyzcView Question on Stackoverflow
Solution 1 - VimperrealView Answer on Stackoverflow
Solution 2 - Vimliuyang1View Answer on Stackoverflow