aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-04 17:36:38 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-04 17:36:38 +1300
commit5c18cfe99006fabb0a78bce6b946a4a930dde248 (patch)
treea7f45a2f36a1e0d3bf18105e5abfcdfd9a19efd9
parentRename and refactor option toggle plugin (diff)
downloaddotfiles-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.
-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 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