make the mode and branch text window local

This commit is contained in:
Bailey Ling
2013-08-11 13:42:47 +00:00
parent 5d92aaecaa
commit 2a10bfc32f
3 changed files with 6 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
" vim: ts=2 sts=2 sw=2 fdm=indent
function! airline#extensions#branch#apply()
let g:airline_current_branch = exists('*fugitive#head') && strlen(fugitive#head()) > 0
let w:airline_current_branch = exists('*fugitive#head') && strlen(fugitive#head()) > 0
\ ? g:airline_branch_prefix.fugitive#head()
\ : exists('*lawrencium#statusline') && strlen(lawrencium#statusline()) > 0
\ ? g:airline_branch_prefix.lawrencium#statusline()