From 63a7aa9dafa2e7a8b043012bfe92eb572e0df8e1 Mon Sep 17 00:00:00 2001 From: Frankie Robertson Date: Wed, 3 Jun 2015 14:33:56 +0300 Subject: [PATCH] Remap to regardless of gui_running since it is an unreliable way of detecting terminals in neovim --- autoload/youcompleteme.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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