VIM: airline

#vim

https://github.com/vim-airline/vim-airline

FAQ

Configuration

The default section configuration:

let g:airline_section_a       (mode, crypt, paste, spell, iminsert)
let g:airline_section_b       (hunks, branch)
let g:airline_section_c       (bufferline or filename)
let g:airline_section_gutter  (readonly, csv)
let g:airline_section_x       (tagbar, filetype, virtualenv)
let g:airline_section_y       (fileencoding, fileformat)
let g:airline_section_z       (percentage, line number, column number)
let g:airline_section_error   (ycm_error_count, syntastic, eclim)
let g:airline_section_warning (ycm_warning_count, whitespace)

Replace a default section:

Public API

# Assign filetype to airline's public api function
call airline#parts#define_function('filetype', 'airline#parts#filetype')

# Only show if window width is greater than 50
call airline#parts#define_minwidth('filetype', 50)

function! AirlineInit()
  # Assign the filetype function to section a
  let g:airline_section_a = airline#section#create(['filetype'])
endfunction
autocmd User AirlineAfterInit call AirlineInit()