diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index 1f8a6a15..c4710eb2 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -508,7 +508,7 @@ function! s:OnInsertEnter() return endif - if get( b:, 'ycm_omnicomplete', 0 ) + if !get( b:, 'ycm_omnicomplete', 0 ) let b:ycm_omnicomplete = 1 call s:SetOmnicompleteFunc() endif