aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-01-20 23:05:50 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-01-20 23:05:50 +1300
commit66b509d50adfdc75e3ba620c607d0540b0cff701 (patch)
treed95475474ee712fae527efa399758764abf37edc
parentb7ce845692751f4de6d10da7e16904f1573b8cd2 (diff)
downloaddotfiles-66b509d50adfdc75e3ba620c607d0540b0cff701.tar.gz
dotfiles-66b509d50adfdc75e3ba620c607d0540b0cff701.zip
Make entire syntax config dependent on load state
-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