aboutsummaryrefslogtreecommitdiff
path: root/vim/config/syntax.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-06 11:38:24 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-06 11:38:24 +1300
commit679f0d577f2cf0faa1b3cc5ef49f392904a1d42d (patch)
tree51a0977d5900289e724748db9e141de94728e425 /vim/config/syntax.vim
parentCaution about :execute not eval() in VimL comments (diff)
downloaddotfiles-679f0d577f2cf0faa1b3cc5ef49f392904a1d42d.tar.gz
dotfiles-679f0d577f2cf0faa1b3cc5ef49f392904a1d42d.zip
Remove redundant has('eval') VimL test
From what I understand from ":help if", ancient Vim and/or vim-tiny without the 'eval' feature will simply gloss over all commands between :if and :endif without executing them. Therefore as soon as we test a version, we're implicitly excluding everything that doesn't have 'eval' anyway.
Diffstat (limited to 'vim/config/syntax.vim')
-rw-r--r--vim/config/syntax.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/config/syntax.vim b/vim/config/syntax.vim
index f1116528..b493c0a9 100644
--- a/vim/config/syntax.vim
+++ b/vim/config/syntax.vim
@@ -8,7 +8,7 @@ if has('syntax')
" 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 has('eval') && v:version >= 701
+ if v:version >= 701
silent! let &background = detect_background#DetectBackground()
else
set background=dark