diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-06 11:38:24 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-06 11:38:24 +1300 |
commit | 679f0d577f2cf0faa1b3cc5ef49f392904a1d42d (patch) | |
tree | 51a0977d5900289e724748db9e141de94728e425 | |
parent | Caution about :execute not eval() in VimL comments (diff) | |
download | dotfiles-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.
-rw-r--r-- | vim/config/syntax.vim | 2 |
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 |