From b08784907ab00cea31f9b89a316f32a8be22c94f Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Thu, 26 Feb 2015 16:15:39 -0500 Subject: [PATCH] eagerly bootstrap all the variables, but load extensions after vim is loaded. #720 --- plugin/airline.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/airline.vim b/plugin/airline.vim index 6e1dbd9a..6b140e26 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -8,7 +8,6 @@ let g:loaded_airline = 1 let s:airline_theme_defined = 0 function! s:init() - call airline#init#bootstrap() call airline#extensions#load() call airline#init#sections() @@ -98,5 +97,7 @@ command! AirlineToggleWhitespace call airline#extensions#whitespace#toggle() command! AirlineToggle call airline_toggle() command! AirlineRefresh call airline#load_theme() | call airline#update_statusline() +call airline#init#bootstrap() + autocmd VimEnter * call airline#deprecation#check() -call s:init() +autocmd VimEnter * call s:init()