From 6128487b9c240052889d27e61411fa1f4dcbde8c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 11 May 2019 11:42:16 +1200 Subject: Adjust 'commentstring' and 'include' C Vim setting --- vim/after/ftplugin/c.vim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'vim/after/ftplugin') 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<' -- cgit v1.2.3