diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-04 17:36:38 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-04 17:36:38 +1300 |
commit | 5c18cfe99006fabb0a78bce6b946a4a930dde248 (patch) | |
tree | a7f45a2f36a1e0d3bf18105e5abfcdfd9a19efd9 /vim/config/syntax.vim | |
parent | Rename and refactor option toggle plugin (diff) | |
download | dotfiles-5c18cfe99006fabb0a78bce6b946a4a930dde248.tar.gz dotfiles-5c18cfe99006fabb0a78bce6b946a4a930dde248.zip |
Wrap detect_background.vim func call in 'silent!'
This prevents older versions of Vim like 6.2 from throwing "E1017:
Missing braces" on merely parsing this code, even though they don't
evaluate it.
Diffstat (limited to 'vim/config/syntax.vim')
-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 dfa7b784..8cb1228b 100644 --- a/vim/config/syntax.vim +++ b/vim/config/syntax.vim @@ -7,7 +7,7 @@ if has('syntax') " If we can, detect a light background, but default to a dark one if has('eval') && v:version >= 701 - call detect_background#DetectBackground() + silent! call detect_background#DetectBackground() else set background=dark endif |