aboutsummaryrefslogblamecommitdiff
path: root/vim/after/ftplugin/c.vim
blob: d1f6ef0bf94534a1cfeefa7b2353874c8111e5bc (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
setlocal define&vim include&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<'