X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/1eea25c716ba1beafa9454b6b7fa8536407c6a08..0716bcc1f67f9f8caebc6788454cd4171a08414b:/vim/ftplugin/cpp.vim diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index a3846a8..807ef89 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -18,7 +18,7 @@ let b:load_doxygen_syntax = 1 augroup fswitch_cpp au! - au BufEnter *.h let b:fswitchdst = 'c,cpp' + au BufEnter *.h let b:fswitchdst = 'c,cpp,cc' au BufEnter *.h let b:fswitchlocs = '.,reg:|include.*|src|' au BufEnter *.hpp let b:fswitchdst = 'cpp,c' au BufEnter *.hpp let b:fswitchlocs = '.,reg:|include.*|src|' @@ -45,10 +45,15 @@ let g:switch_const_definitions = nnoremap c :call switch#Switch({'definitions': g:switch_const_definitions}) +" Disable ale as we use ycm +let b:ale_enabled = 0 + nnoremap gd :YcmCompleter GoTo nnoremap d :vs:YcmCompleter GoTo nnoremap gD :YcmCompleter GoToReferences +nnoremap fi :YcmCompleter FixIt + " format with = call operator#user#define_ex_command('ycmcompleter-format', 'YcmCompleter Format') map = (operator-ycmcompleter-format)