aboutsummaryrefslogtreecommitdiff
path: root/vim/config/syntax.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/config/syntax.vim')
-rw-r--r--vim/config/syntax.vim8
1 files changed, 5 insertions, 3 deletions
diff --git a/vim/config/syntax.vim b/vim/config/syntax.vim
index 8cb1228b..b493c0a9 100644
--- a/vim/config/syntax.vim
+++ b/vim/config/syntax.vim
@@ -5,9 +5,11 @@ if has('syntax')
silent! syntax enable
silent! syntax sync minlines=100
- " If we can, detect a light background, but default to a dark one
- if has('eval') && v:version >= 701
- silent! call detect_background#DetectBackground()
+ " 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