From be2ea5d7be579a455390a4356ad927dce04ede37 Mon Sep 17 00:00:00 2001 From: Daniel Gray Date: Fri, 24 Apr 2015 13:26:44 -0500 Subject: [PATCH] use -bar when defining commands -bar allows the user to chain commands after it --- plugin/airline.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/airline.vim b/plugin/airline.vim index 5667047..847eaed 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -102,10 +102,10 @@ function! s:airline_theme(...) endif endfunction -command! -nargs=? -complete=customlist,get_airline_themes AirlineTheme call airline_theme() -command! AirlineToggleWhitespace call airline#extensions#whitespace#toggle() -command! AirlineToggle call s:airline_toggle() -command! AirlineRefresh call airline#load_theme() | call airline#update_statusline() +command! -bar -nargs=? -complete=customlist,get_airline_themes AirlineTheme call airline_theme() +command! -bar AirlineToggleWhitespace call airline#extensions#whitespace#toggle() +command! -bar AirlineToggle call s:airline_toggle() +command! -bar AirlineRefresh call airline#load_theme() | call airline#update_statusline() call airline#init#bootstrap() call s:airline_toggle()