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

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