Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transparent background #50

Open
luisdavim opened this issue May 31, 2015 · 7 comments
Open

Transparent background #50

luisdavim opened this issue May 31, 2015 · 7 comments

Comments

@luisdavim
Copy link

Is there a way to make the background transparent (use the terminal's background)?
set transparency=15 "only works in MacVim

@justinmk
Copy link
Contributor

Not from Vim... that's a terminal feature.

@luisdavim
Copy link
Author

Yes, but this color scheme overrides the terminal background with ctermbg.
What I'm asking is for some option to toggle that, something that I can add to my .vimrc like let g:monokai-transparent = 1

@justinmk
Copy link
Contributor

justinmk commented Jun 1, 2015

The way to override colorscheme settings is to :hi ctermbg=foo. Not to add random settings.

@zergler
Copy link

zergler commented Jun 27, 2015

This worked for me with a transparent rxvt terminal. Make sure to add it after your colorscheme molokai and you shouldn't have to modify the color file at all. If you want to toggle it within vim, wrap it in a vim function.

hi Normal ctermbg=none
hi NonText ctermbg=none
hi LineNr ctermbg=none

@guiniol
Copy link

guiniol commented Nov 9, 2015

I proposed a PR a few years back to the same effect: #41
It adds an option: g:molokai_transparent which basically does hi Normal ctermbg=none

@jgrar
Copy link

jgrar commented Apr 4, 2016

Here's my example if you're interested jgrar/dotfiles@3204e17

There's an example screenshot at the bottom.

@selurvedu
Copy link

@jgrar, thanks, I'll give it a shot.

zx1986 added a commit to zx1986/xVim that referenced this issue Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants