aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/cpp.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after/ftplugin/cpp.vim')
-rw-r--r--vim/after/ftplugin/cpp.vim7
1 files changed, 5 insertions, 2 deletions
diff --git a/vim/after/ftplugin/cpp.vim b/vim/after/ftplugin/cpp.vim
index ae100015..b5596613 100644
--- a/vim/after/ftplugin/cpp.vim
+++ b/vim/after/ftplugin/cpp.vim
@@ -3,12 +3,15 @@ if &filetype !=# 'cpp' || v:version < 700
finish
endif
+" Include macros in completion
+setlocal complete+=d
+
" 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
+
+let b:undo_ftplugin .= '|setlocal complete< include< path<'