aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/c.vim
blob: b59894106f73433efc7116f45c3f2e4177fd0d03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
" Set 'commentstring' and 'include' back to their default C-friendly values
setlocal commentstring&vim
setlocal include&vim

" Include macros in completion
setlocal complete+=d

" Include system headers on UNIX
if has('unix')
  setlocal path+=/usr/include
endif

" Undo all of the above
let b:undo_ftplugin .= '|setlocal commentstring< complete< include< path<'