diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index e44f3ac0..eb349a0a 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -117,11 +117,12 @@ function! s:SetUpKeyMappings() if !empty( g:ycm_key_invoke_completion ) " trigger omni completion, deselects the first completion " candidate that vim selects by default - exe 'inoremap ' . g:ycm_key_invoke_completion . ' ' + silent! exe 'inoremap ' . g:ycm_key_invoke_completion . + \ ' ' endif if !empty( g:ycm_key_detailed_diagnostics ) - exe 'nnoremap ' . g:ycm_key_detailed_diagnostics . + silent! exe 'nnoremap ' . g:ycm_key_detailed_diagnostics . \ ' :YcmShowDetailedDiagnostic' endif endfunction