aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after/ftplugin')
-rw-r--r--vim/after/ftplugin/c.vim9
1 files changed, 5 insertions, 4 deletions
diff --git a/vim/after/ftplugin/c.vim b/vim/after/ftplugin/c.vim
index e3eeaede..b5989410 100644
--- a/vim/after/ftplugin/c.vim
+++ b/vim/after/ftplugin/c.vim
@@ -1,13 +1,14 @@
+" Set 'commentstring' and 'include' back to their default C-friendly values
+setlocal commentstring&vim
+setlocal include&vim
+
" Include macros in completion
setlocal complete+=d
-" Set include pattern
-setlocal include=^\\s*#\\s*include
-
" Include system headers on UNIX
if has('unix')
setlocal path+=/usr/include
endif
" Undo all of the above
-let b:undo_ftplugin .= '|setlocal complete< include< path<'
+let b:undo_ftplugin .= '|setlocal commentstring< complete< include< path<'