diff options
author | xero <x@xero.nu> | 2014-05-05 15:09:26 -0400 |
---|---|---|
committer | xero <x@xero.nu> | 2014-05-05 15:09:26 -0400 |
commit | 89a2b67f2427d961bb2f0de771a0290d85e379f9 (patch) | |
tree | a30fa26360b7c3cf442689650da54865ac0f6fc3 /.vim/bundle/vim-airline/autoload/airline/extensions/unite.vim | |
parent | 53b47ce8258f7efe380cc9dab09826b1f0e9bc27 (diff) | |
download | dotfiles_ascii-89a2b67f2427d961bb2f0de771a0290d85e379f9.tar.xz dotfiles_ascii-89a2b67f2427d961bb2f0de771a0290d85e379f9.zip |
add vim configs -- yes i have joined the cult of vim
Diffstat (limited to '')
-rw-r--r-- | .vim/bundle/vim-airline/autoload/airline/extensions/unite.vim | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.vim/bundle/vim-airline/autoload/airline/extensions/unite.vim b/.vim/bundle/vim-airline/autoload/airline/extensions/unite.vim new file mode 100644 index 0000000..d230b6f --- /dev/null +++ b/.vim/bundle/vim-airline/autoload/airline/extensions/unite.vim @@ -0,0 +1,23 @@ +" MIT License. Copyright (c) 2013-2014 Bailey Ling. +" vim: et ts=2 sts=2 sw=2 + +if !get(g:, 'loaded_unite', 0) + finish +endif + +function! airline#extensions#unite#apply(...) + if &ft == 'unite' + call a:1.add_section('airline_a', ' Unite ') + call a:1.add_section('airline_b', ' %{get(unite#get_context(), "buffer_name", "")} ') + call a:1.add_section('airline_c', ' %{unite#get_status_string()} ') + call a:1.split() + call a:1.add_section('airline_y', ' %{get(unite#get_context(), "real_buffer_name", "")} ') + return 1 + endif +endfunction + +function! airline#extensions#unite#init(ext) + let g:unite_force_overwrite_statusline = 0 + call a:ext.add_statusline_func('airline#extensions#unite#apply') +endfunction + |