From 4211cc3ac7460a950fb682398ced3d9bcb7f5193 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 26 Nov 2018 09:29:17 +1300 Subject: Move b:undo_ftplugin unsets for C inline with sets --- vim/after/ftplugin/cpp.vim | 5 +++-- 1 file changed, 3 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 b5596613..4042fb84 100644 --- a/vim/after/ftplugin/cpp.vim +++ b/vim/after/ftplugin/cpp.vim @@ -5,13 +5,14 @@ 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 - -let b:undo_ftplugin .= '|setlocal complete< include< path<' -- cgit v1.2.3