Reinstate the old names for backward compatibility.

This commit is contained in:
Lifepillar
2017-11-13 09:12:29 +01:00
parent ea0e47bd7b
commit 00c6432253
9 changed files with 39 additions and 0 deletions

View File

@@ -70,6 +70,10 @@ colorscheme, e.g.:
To switch the background from dark to light or vice versa, just set `background`
accordingly.
**Note:** the old names (`solarized8_dark*.vim` and `solarized8_light*.vim`) are
still availabled, but **they are deprecated** and will be removed in a future
release. Please, use one of the names above.
If you use Vim packages, there is no need to `packadd solarized8`. Keep your
`runtimepath` clean!

View File

@@ -0,0 +1,4 @@
let s:dir = expand('<sfile>:p:h').(!exists("+shellslash") || &shellslash ? '/' : '\')
set background=dark
execute "source" s:dir."solarized8.vim"
unlet s:dir

View File

@@ -0,0 +1,4 @@
let s:dir = expand('<sfile>:p:h').(!exists("+shellslash") || &shellslash ? '/' : '\')
set background=dark
execute "source" s:dir."solarized8_flat.vim"
unlet s:dir

View File

@@ -0,0 +1,4 @@
let s:dir = expand('<sfile>:p:h').(!exists("+shellslash") || &shellslash ? '/' : '\')
set background=dark
execute "source" s:dir."solarized8_high.vim"
unlet s:dir

View File

@@ -0,0 +1,5 @@
let s:dir = expand('<sfile>:p:h').(!exists("+shellslash") || &shellslash ? '/' : '\')
set background=dark
execute "source" s:dir."solarized8_low.vim"
unlet s:dir

View File

@@ -0,0 +1,5 @@
let s:dir = expand('<sfile>:p:h').(!exists("+shellslash") || &shellslash ? '/' : '\')
set background=light
execute "source" s:dir."solarized8.vim"
unlet s:dir

View File

@@ -0,0 +1,4 @@
let s:dir = expand('<sfile>:p:h').(!exists("+shellslash") || &shellslash ? '/' : '\')
set background=light
execute "source" s:dir."solarized8_flat.vim"
unlet s:dir

View File

@@ -0,0 +1,5 @@
let s:dir = expand('<sfile>:p:h').(!exists("+shellslash") || &shellslash ? '/' : '\')
set background=light
execute "source" s:dir."solarized8_high.vim"
unlet s:dir

View File

@@ -0,0 +1,4 @@
let s:dir = expand('<sfile>:p:h').(!exists("+shellslash") || &shellslash ? '/' : '\')
set background=light
execute "source" s:dir."solarized8_low.vim"
unlet s:dir