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
+nnoremap <buffer> gd :YcmCompleter GoTo<CR>
+nnoremap <buffer> <C-W>d :vs<CR>:YcmCompleter GoTo<CR>
+
setlocal foldmethod=syntax
" set foldlevel according to number of matches of 'namespace' and 'class' not
" containing ';'