aboutsummaryrefslogblamecommitdiff
path: root/vim/after/ftplugin/c.vim
blob: dd99e81f09f126c971ddca2cbbcf7651628927fd (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                                      

                                                                  
 

                              
                                            
 
                                

                             
                                          
     
" Set 'commentstring', 'define', and 'include' back to their default C-friendly values
setlocal commentstring&vim define&vim include&vim
let b:undo_ftplugin .= '|setlocal commentstring< define< include<'

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

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