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