X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/e7dcb01eced1027f952356599f1e43f1ee8083eb..ad1f1455267ff65ac7aeb8fbd3a28c89c16a24f9:/vim/ftplugin/cpp.vim diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index b98aee2..5f68c35 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -15,10 +15,15 @@ setlocal cinoptions+=:0 " don't indent case labels 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 gd :YcmCompleter GoTo +nnoremap d :vs:YcmCompleter GoTo + setlocal foldmethod=syntax " set foldlevel according to number of matches of 'namespace' and 'class' not " containing ';'