make it possible to declare sections in the vimrc (#204).

This commit is contained in:
Bailey Ling
2013-08-31 17:42:09 -04:00
parent 3b2b224a3b
commit 1b91c71fc9
9 changed files with 19 additions and 11 deletions

View File

@@ -15,6 +15,7 @@ function! s:init()
let s:airline_initialized = 1
call airline#init#bootstrap()
call airline#init#sections()
let s:airline_theme_defined = exists('g:airline_theme')
if s:airline_theme_defined || !airline#switch_matching_theme()
@@ -69,7 +70,7 @@ function! s:airline_toggle()
autocmd CmdwinLeave * call airline#remove_statusline_func('airline#cmdwinenter')
autocmd ColorScheme * call <sid>on_colorscheme_changed()
autocmd WinEnter,BufWinEnter,FileType,BufUnload,ShellCmdPost,VimResized *
autocmd VimEnter,WinEnter,BufWinEnter,FileType,BufUnload,VimResized *
\ call <sid>on_window_changed()
autocmd BufWritePost */autoload/airline/themes/*.vim