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

  " Use syntax highlighting with 100 lines of context
  silent! syntax enable
  silent! syntax sync minlines=100

  " If we can, detect a light background, but default to a dark one
  if has('eval') && v:version >= 701
    silent! call detect_background#DetectBackground()
  else
    set background=dark
  endif

endif