aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/cpp.vim
blob: 38c9433095bad7701f36e61c7b5777bee86620a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
" Extra configuration for C++ files
if &filetype !=# 'cpp' || v:version < 700
  finish
endif

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

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