nanotech / jellybeans.vim

A colorful, dark color scheme for Vim.
http://www.vim.org/scripts/script.php?script_id=2555
1.8k stars 315 forks source link

Can no longer hide tilde signs after the end of buffer in Neovim #48

Closed meribold closed 8 years ago

meribold commented 8 years ago

As described here, I'm hiding those tildes with

hi EndOfBuffer ctermbg=bg ctermfg=bg guibg=bg guifg=bg

I think this was broken by https://github.com/nanotech/jellybeans.vim/commit/2b423cf7d9d300ea7dee70fac081aeb44c186007. The error I get is:

Error detected while processing function <SNR>1_hide_tildes:
line    1:
E420: BG color unknown
nanotech commented 8 years ago

Yeah, 2b423cf removed the background color by default. Maybe NeoVim should accept none as a value for bg, but since it doesn't, does this:

hi EndOfBuffer ctermbg=none ctermfg=none guibg=none guifg=none

work?

meribold commented 8 years ago

No, it causes white tildes.

nanotech commented 8 years ago

Try adding

let g:jellybeans_use_term_background_color = 1

to your .vimrc to get jellybeans to set a background color again, and use your original =bg highlight command.

meribold commented 8 years ago

Yes, that works. It also changes the background color back to the lighter shade used before 2b423cf7d9d300ea7dee70fac081aeb44c186007. Does jellybeans default to using the terminal's background color now?

nanotech commented 8 years ago

Yes, though I'm thinking of switching it back for backwards compatibility.

meribold commented 8 years ago

Thanks for your help!