- 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/'
+ au BufEnter *.h let b:fswitchlocs = 'reg:|include.*|source|'
+ au BufEnter *.cpp let b:fswitchdst = 'hpp,h'
+ au BufEnter *.cpp let b:fswitchlocs = 'reg:|source|include/**|'