aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/cpp.vim
blob: ae1000151ac6f3e0c991df0dbf495749a61e532f (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 include pattern
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