automatic separators.

This commit is contained in:
Bailey Ling
2013-08-29 00:57:58 +00:00
parent e13a4c8b1a
commit a927bf9475
3 changed files with 27 additions and 13 deletions

View File

@@ -80,14 +80,14 @@ function! s:init()
\ }, 'keep')
call airline#extensions#load()
call airline#util#define_section('a', ['mode', 'paste', 'iminsert'])
call airline#util#define_section('b', ['hunks', 'branch'])
call airline#util#define_section('c', ['%<', 'file'])
call airline#util#define_section('gutter', ['readonly', '%='])
call airline#util#define_section('x', ['tagbar', '%{&filetype}'])
call airline#util#define_section('y', ['ffenc'])
call airline#util#define_section('z', ['%3p%% %{g:airline_symbols.linenr} %3l:%3c '])
call airline#util#define_section('warning', ['syntastic', 'whitespace'])
call airline#util#define_left_section('a', ['mode', 'paste', 'iminsert'])
call airline#util#define_left_section('b', ['hunks', 'branch'])
call airline#util#define_left_section('c', ['%<', 'file'])
call airline#util#define_left_section('gutter', ['readonly', '%='])
call airline#util#define_right_section('x', ['tagbar', '%{&filetype}'])
call airline#util#define_right_section('y', ['ffenc'])
call airline#util#define_right_section('z', ['%3p%% %{g:airline_symbols.linenr} %3l:%3c '])
call airline#util#define_right_section('warning', ['syntastic', 'whitespace'])
let s:airline_theme_defined = exists('g:airline_theme')
if s:airline_theme_defined || !airline#switch_matching_theme()