altercation / vim-colors-solarized

precision colorscheme for the vim text editor
http://ethanschoonover.com/solarized
6.58k stars 1.75k forks source link

Fix BG toggle function #210

Closed fancsali closed 5 years ago

fancsali commented 5 years ago

Sometimes setting the 'bg' option would also reset the colorscheme, so we need to save the g:colors_name value before toggling the background option value.

fancsali commented 5 years ago

It's only an issue with older ViM versions, probably before 8.x. Based on my test setup, it's highly likely it is because the native package handling feature missing before 8.x.