diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index 3c34661a..38515418 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -177,8 +177,8 @@ function! s:SetUpKeyMappings() let invoke_key = g:ycm_key_invoke_completion " Inside the console, is passed as to Vim - if invoke_key ==# '' && !has('gui_running') - let invoke_key = '' + if invoke_key ==# '' + imap endif " trigger omni completion, deselects the first completion