From 3595debb978109334e11b1a36fb56e87a8f49bc8 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Sun, 25 Aug 2013 11:51:32 -0400 Subject: [PATCH] move virtualenv to the right side, so tagbar function names don't shift it all over the place. --- autoload/airline/extensions/virtualenv.vim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/autoload/airline/extensions/virtualenv.vim b/autoload/airline/extensions/virtualenv.vim index 1ca4359..4d2d246 100644 --- a/autoload/airline/extensions/virtualenv.vim +++ b/autoload/airline/extensions/virtualenv.vim @@ -7,9 +7,7 @@ endfunction function! airline#extensions#virtualenv#apply(...) if &filetype == "python" - if !exists('w:airline_section_x') - let w:airline_section_x = g:airline_section_x - endif - let w:airline_section_x = '%{virtualenv#statusline()} '.g:airline_right_alt_sep.' '.w:airline_section_x + call airline#extensions#append_to_section('x', ' '.g:airline_right_alt_sep.' %{virtualenv#statusline()}') endif endfunction +