aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/c.vim
blob: 8ddea387f890e6b13b685017c6dc2e7fce582b38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
" Extra configuration for 'c' filetypes
if &compatible || v:version < 700 || exists('b:did_ftplugin_after')
  finish
endif
if &filetype !=# 'c'
  finish
endif
let b:did_ftplugin_after = 1
let b:undo_ftplugin = b:undo_ftplugin
      \ . '|unlet b:did_ftplugin_after'

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