X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/0e7614ab3cf87f441b17f410bc5a136a7917c661..b76559a2a0d04fc7dd442936bccff0b7bf54d424:/vim/ftplugin/cpp.vim?ds=inline diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index a315592..78756f4 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -43,15 +43,18 @@ let g:switch_const_definitions = \ 'const \([[:alnum:]_:<>]\{-}\) &': '\1 ' \ } ] -nnoremap c :call switch#Switch(g:switch_const_definitions, {}) +nnoremap c :call switch#Switch({'definitions': g:switch_const_definitions}) nnoremap gd :YcmCompleter GoTo nnoremap d :vs:YcmCompleter GoTo nnoremap gD :YcmCompleter GoToReferences +nnoremap fi :YcmCompleter FixIt + " 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= =