liuchengxu/space-vim-dark

Transparency

k1sul1 opened this issue · 3 comments

What's the recommended way of making the background transparent in this theme?

I can run run hi Normal ctermbg=NONE guibg=NONE after starting Vim to remove most of the background (the line numbers still have a solid background), but it does nothing in my .vimrc:

colorscheme space-vim-dark
hi Normal ctermbg=NONE guibg=NONE
hi MatchParen cterm=underline ctermbg=NONE

I could probably use an autocommand but surely there's a better way? 🙂

Works for me:

2018-02-20 10 08 40

Have you put the two lines at the end of your .vimrc?

color space-vim-dark
hi Normal ctermbg=NONE guibg=NONE

If you also don't want the line numbers' background,

hi Nomral ctermbg=NONE guibg=NONE
hi LineNr ctermbg=NONE guibg=NONE

2018-02-20 10 28 41

Check the verbose of normal highlight:

2018-02-20 10 12 51

I had the lines in my config, but they were not the last, apparently some plugin must've overwritten them.

Lighting fast answer, thanks for that!

FWIW: The above instructions didn't work for me, but it did work when I added "hi Normal ctermbg=NONE guibg=NONE" to the end of my ~/.SpaceVim/main.vim file.