aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim/config/syntax.vim8
1 files changed, 3 insertions, 5 deletions
diff --git a/vim/config/syntax.vim b/vim/config/syntax.vim
index 5fdd1a82..00004e35 100644
--- a/vim/config/syntax.vim
+++ b/vim/config/syntax.vim
@@ -1,11 +1,9 @@
" Options dependent on the syntax feature
-if has('syntax')
+if has('syntax') && !has('g:syntax_on')
" Use syntax highlighting with 100 lines of context
- if !has('g:syntax_on')
- silent! syntax enable
- silent! syntax sync minlines=100
- endif
+ silent! syntax enable
+ silent! syntax sync minlines=100
" 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