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

" Include macros in completion
setlocal complete+=d

" Set include pattern
setlocal include=^\\s*#\\s*include

" Include headers on UNIX
if has('unix')
  setlocal path+=/usr/include
endif

let b:undo_ftplugin .= '|setlocal complete< include< path<'