Created
September 17, 2013 04:45
-
-
Save saihoooooooo/6590164 to your computer and use it in GitHub Desktop.
airline create example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| call airline#parts#define_function('fenc', s:SID() . 'AirlineFenc') | |
| function! s:AirlineFenc() | |
| return &fileencoding != '' ? &fileencoding : &encoding | |
| endfunction | |
| call airline#parts#define_function('bomb', s:SID() . 'AirlineBomb') | |
| call airline#parts#define_condition('bomb', '\&bomb == 1') | |
| function! s:AirlineBomb() | |
| return 'BOM' | |
| endfunction | |
| call airline#parts#define_function('ff', s:SID() . 'AirlineFF') | |
| function! s:AirlineFF() | |
| return &fileformat | |
| endfunction | |
| let g:airline_section_y = airline#section#create_right(['fenc', 'bomb', 'ff']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment