From 60bd39cf3bbf8ec66c729c0803555b721643924b Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 22 Jul 2018 20:03:43 +1200 Subject: Add d (macros) to C and C++ 'complete' setting --- vim/after/ftplugin/cpp.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'vim/after/ftplugin/cpp.vim') diff --git a/vim/after/ftplugin/cpp.vim b/vim/after/ftplugin/cpp.vim index ae100015..b5596613 100644 --- a/vim/after/ftplugin/cpp.vim +++ b/vim/after/ftplugin/cpp.vim @@ -3,12 +3,15 @@ if &filetype !=# 'cpp' || v:version < 700 finish endif +" Include macros in completion +setlocal complete+=d + " 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<' -- cgit v1.2.3