X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/aeecb4f5dde5ef4ffbcdc27940616fdd24b8d29d..b269c35f8afe131b5aa4a3f20ca9416fa801cd52:/vim/ftplugin/cpp.vim?ds=inline diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index edc1f32..b54cffd 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -47,10 +47,12 @@ nnoremap c :call switch#Switch(g:switch_const_definitions, {})< nnoremap gd :YcmCompleter GoTo nnoremap d :vs:YcmCompleter GoTo +nnoremap gD :YcmCompleter GoToReferences " format with = -map = (operator-clang-format) -vnoremap = :ClangFormat +call operator#user#define_ex_command('ycmcompleter-format', 'YcmCompleter Format') +map = (operator-ycmcompleter-format) +vnoremap = :YcmCompleter Format " restore = mapping to g= nnoremap g= = vnoremap g= =