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.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/vim/after/ftplugin/cpp.vim b/vim/after/ftplugin/cpp.vim
index b5596613..4042fb84 100644
--- a/vim/after/ftplugin/cpp.vim
+++ b/vim/after/ftplugin/cpp.vim
@@ -5,13 +5,14 @@ endif
" Include macros in completion
setlocal complete+=d
+let b:undo_ftplugin .= '|setlocal complete<'
" 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<'