From b07234bfa0ac5faf7d41c1da24e4beb1d296420c Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Wed, 4 Nov 2015 11:03:02 +0000 Subject: [PATCH] vim/cpp: fix fswitch for cadscan This is cadscan specific, maybe I need a way to set project specific settings: - plugin? - au /path/to/project/*.{h,cpp}? - something else? --- vim/ftplugin/cpp.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index b98aee2..7dd40e6 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -15,8 +15,10 @@ setlocal cinoptions+=:0 " don't indent case labels let b:load_doxygen_syntax = 1 augroup fswitch - au BufEnter *.h let b:fswitchdst = 'cpp,c' - au BufEnter *.h let b:fswitchlocs = 'reg:/include/source/' + au BufEnter *.h let b:fswitchdst = 'cpp,c' + au BufEnter *.h let b:fswitchlocs = 'reg:/include/source/' + au BufEnter *.cpp let b:fswitchdst = 'h' + au BufEnter *.cpp let b:fswitchlocs = 'reg:/\Csource/include/' augroup END setlocal foldmethod=syntax -- 2.48.1