diff --git a/autoload/airline/extensions.vim b/autoload/airline/extensions.vim index 93f2b9c6..25f47ec9 100644 --- a/autoload/airline/extensions.vim +++ b/autoload/airline/extensions.vim @@ -138,7 +138,9 @@ function! airline#extensions#load() call airline#extensions#netrw#init(s:ext) endif - call airline#extensions#ycm#init(s:ext) + if exists(':YcmDiag') + call airline#extensions#ycm#init(s:ext) + endif if get(g:, 'loaded_vimfiler', 0) let g:vimfiler_force_overwrite_statusline = 0