diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-05-31 18:17:25 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-05-31 18:17:25 +1200 |
commit | 98b681e69e17a8011c1bfbef2ba74315e9c1174e (patch) | |
tree | 934685d88af8a47075e81925ee98456e61dcafae /vim/config/syntax.vim | |
parent | Merge branch 'release/v0.36.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-98b681e69e17a8011c1bfbef2ba74315e9c1174e.tar.gz dotfiles-98b681e69e17a8011c1bfbef2ba74315e9c1174e.zip |
Merge branch 'release/v0.37.0'v0.37.0
* release/v0.37.0:
Bump VERSION
Rebuild dotfiles(7) manual from source
Update README.md to reflect Vim plugin state
Spin off command_typos Vim plugin
Spin off big_file_options Vim plugin
Update Vim plugins
Spin off strip_trailing_whitespace Vim plugin
Spin off mail_mutt Vim plugin
Spin off copy_linebreak Vim plugin
Junk detect_background.vim and thereby autoload
Diffstat (limited to 'vim/config/syntax.vim')
-rw-r--r-- | vim/config/syntax.vim | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/vim/config/syntax.vim b/vim/config/syntax.vim index 2322db5b..a2186b1f 100644 --- a/vim/config/syntax.vim +++ b/vim/config/syntax.vim @@ -5,17 +5,12 @@ if has('syntax') && !has('g:syntax_on') silent! syntax enable silent! syntax sync minlines=100 - " If we can, detect a light background, but default to a dark one. This is - " only because it's more likely the author of this configuration will be - " using one. - if v:version >= 701 - silent! let &background = detect_background#DetectBackground() - else - set background=dark - endif + " Opinionated; if the author is using color at all, it will probably be with + " a dark background + set background=dark - " The 'sahara' colorscheme only works for dark backgrounds with 256 colors - if &background ==# 'dark' && (has('gui_running') || &t_Co == 256) + " The 'sahara' colorscheme only works in the GUI or with 256 colors + if has('gui_running') || &t_Co >= 256 silent! colorscheme sahara endif |