using "silent!" on maps we create with <unique>

This commit is contained in:
Strahinja Val Markovic 2013-03-17 13:09:55 -07:00
parent 4cb9f17c5f
commit 56b2f70a1a

View File

@ -117,11 +117,12 @@ function! s:SetUpKeyMappings()
if !empty( g:ycm_key_invoke_completion ) if !empty( g:ycm_key_invoke_completion )
" <c-x><c-o> trigger omni completion, <c-p> deselects the first completion " <c-x><c-o> trigger omni completion, <c-p> deselects the first completion
" candidate that vim selects by default " candidate that vim selects by default
exe 'inoremap <unique> ' . g:ycm_key_invoke_completion . ' <C-X><C-O><C-P>' silent! exe 'inoremap <unique> ' . g:ycm_key_invoke_completion .
\ ' <C-X><C-O><C-P>'
endif endif
if !empty( g:ycm_key_detailed_diagnostics ) if !empty( g:ycm_key_detailed_diagnostics )
exe 'nnoremap <unique> ' . g:ycm_key_detailed_diagnostics . silent! exe 'nnoremap <unique> ' . g:ycm_key_detailed_diagnostics .
\ ' :YcmShowDetailedDiagnostic<cr>' \ ' :YcmShowDetailedDiagnostic<cr>'
endif endif
endfunction endfunction