aboutsummaryrefslogtreecommitdiff
path: root/vim/config/syntax.vim
blob: 5fdd1a829e7bccd47e35dcc5d4176b7e10458e02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
" Options dependent on the syntax feature
if has('syntax')

  " Use syntax highlighting with 100 lines of context
  if !has('g:syntax_on')
    silent! syntax enable
    silent! syntax sync minlines=100
  endif

  " 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 v:version >= 701
    silent! let &background = detect_background#DetectBackground()
  else
    set background=dark
  endif

endif