liuchengxu / space-vim-dark

:purple_heart: A dark colorscheme for space-vim, see space-vim-theme for light background support!
MIT License
599 stars 74 forks source link

Transparency #14

Closed k1sul1 closed 6 years ago

k1sul1 commented 6 years ago

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? :slightly_smiling_face:

liuchengxu commented 6 years ago

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
k1sul1 commented 6 years ago

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!

WillyWonksters commented 2 years ago

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.