X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/b07234bfa0ac5faf7d41c1da24e4beb1d296420c..72b66a86cfeaf18b31c5454b685ee2d341f816b6:/vim/ftplugin/cpp.vim diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index 7dd40e6..7631f49 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -16,11 +16,14 @@ 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 *.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/**|' 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 ';'