use -bar when defining commands

-bar allows the user to chain commands after it
This commit is contained in:
Daniel Gray 2015-04-24 13:26:44 -05:00
parent f45ecdac15
commit be2ea5d7be

View File

@ -102,10 +102,10 @@ function! s:airline_theme(...)
endif endif
endfunction endfunction
command! -nargs=? -complete=customlist,<sid>get_airline_themes AirlineTheme call <sid>airline_theme(<f-args>) command! -bar -nargs=? -complete=customlist,<sid>get_airline_themes AirlineTheme call <sid>airline_theme(<f-args>)
command! AirlineToggleWhitespace call airline#extensions#whitespace#toggle() command! -bar AirlineToggleWhitespace call airline#extensions#whitespace#toggle()
command! AirlineToggle call s:airline_toggle() command! -bar AirlineToggle call s:airline_toggle()
command! AirlineRefresh call airline#load_theme() | call airline#update_statusline() command! -bar AirlineRefresh call airline#load_theme() | call airline#update_statusline()
call airline#init#bootstrap() call airline#init#bootstrap()
call s:airline_toggle() call s:airline_toggle()