From: Samir Benmendil Date: Mon, 27 Jul 2015 14:08:38 +0000 (+0100) Subject: vim: add cpp fswitch rules X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/dd7c4ba8d5d4118adba1103d3ba24f796db0e3ca?ds=inline vim: add cpp fswitch rules these are specific to cadscan, find some more general rules or make them only apply on '*/cadscan/*.h' --- 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