aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-11 11:42:16 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-11 11:42:16 +1200
commit6128487b9c240052889d27e61411fa1f4dcbde8c (patch)
tree7fe54cf255a168de77428f7c5a674ac5ea38e033
parentMerge branch 'release/v4.24.0' into develop (diff)
downloaddotfiles-6128487b9c240052889d27e61411fa1f4dcbde8c.tar.gz
dotfiles-6128487b9c240052889d27e61411fa1f4dcbde8c.zip
Adjust 'commentstring' and 'include' C Vim setting
-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<'