aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/c.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after/ftplugin/c.vim')
-rw-r--r--vim/after/ftplugin/c.vim11
1 files changed, 3 insertions, 8 deletions
diff --git a/vim/after/ftplugin/c.vim b/vim/after/ftplugin/c.vim
index da34d269..ccc5b170 100644
--- a/vim/after/ftplugin/c.vim
+++ b/vim/after/ftplugin/c.vim
@@ -1,18 +1,13 @@
-" Extra configuration for C files
-if &filetype !=# 'c' || v:version < 700
- finish
-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
+
+" Undo all of the above
+let b:undo_ftplugin .= '|setlocal complete< include< path<'