From: Samir Benmendil Date: Fri, 8 May 2020 14:46:36 +0000 (+0100) Subject: vim/cpp: use YcmCompleter Format instead of vim-clang-format X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/dc229eb1026cd32640f8bd4aff9583779d6e39a1 vim/cpp: use YcmCompleter Format instead of vim-clang-format --- diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index a315592..b54cffd 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -50,8 +50,9 @@ 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= = diff --git a/vim/vimrc b/vim/vimrc index 504cbd7..d69ce50 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -31,9 +31,6 @@ Plug 'kshenoy/vim-signature' Plug 'majutsushi/tagbar' Plug 'octol/vim-cpp-enhanced-highlight' Plug 'raimondi/delimitmate' -Plug 'ram-z/vim-clang-format', { 'branch': 'fix-undo' } -" fix some issue with vim-clang-format not finding .clang-format -let g:clang_format#detect_style_file = 1 Plug 'vimwiki/vimwiki', { 'branch': 'dev' } " Plug 'scrooloose/syntastic' Plug 'sgeb/vim-diff-fold'