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

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

  " Opinionated; if the author is using color at all, it will probably be with
  " a dark background
  set background=dark

  " The 'sahara' colorscheme only works in the GUI or with 256 colors
  if has('gui_running') || &t_Co >= 256
    silent! colorscheme sahara
  endif

endif