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

" Include macros in completion
setlocal complete+=d
let b:undo_ftplugin .= '|setlocal complete<'

" Set include pattern
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