Vim color scheme overriding the background settings in Gnome Terminal

25,995

Solution 1

Set the ctermbg to none:

hi Normal ctermbg=none

Solution 2

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.

Share:
25,995
alxyzc
Author by

alxyzc

Am I a lion? I don't think of myself as a lion.

Updated on December 29, 2020

Comments

  • alxyzc
    alxyzc over 3 years

    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?