X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/a908a41cb42d95faed862049b43ee1bd546abe91..0e7614ab3cf87f441b17f410bc5a136a7917c661:/vim/ftplugin/cpp.vim?ds=inline diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index 2f545a5..a315592 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -6,6 +6,8 @@ setlocal tabstop=4 setlocal softtabstop=4 setlocal expandtab +"TODO these are ignored because we set indentexpr in `indent/cpp.vim` +" Ideally, indentexpr should read the settings from .clang-format if it exists setlocal nosmartindent setlocal autoindent setlocal cinkeys-=0# " don't reindent PP directives @@ -45,6 +47,7 @@ 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)