aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/c.vim
blob: fff9de0441d22a7fe14b298105258aec403f5751 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
" Extra configuration for C files
if &filetype !=# 'c' || v:version < 700
  finish
endif

" Set comment formats
setlocal include=^\\s*#\\s*include
let b:undo_ftplugin .= '|setlocal include<'

" Include headers on UNIX
if has('unix')
  setlocal path+=/usr/include
  let b:undo_ftplugin .= '|setlocal path<'
endif