From dd7c4ba8d5d4118adba1103d3ba24f796db0e3ca Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Mon, 27 Jul 2015 15:08:38 +0100 Subject: [PATCH] vim: add cpp fswitch rules these are specific to cadscan, find some more general rules or make them only apply on '*/cadscan/*.h' --- vim/ftplugin/cpp.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index 16ffc97..7fd300c 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -1 +1,6 @@ setlocal foldmethod=syntax + +augroup fswitch + au BufEnter *.h let b:fswitchdst = 'cpp,c' + au BufEnter *.h let b:fswitchlocs = 'reg:/include/source/' +augroup END -- 2.48.1