diff --git a/autoload/airline.vim b/autoload/airline.vim index bd14a97f..2093cbe3 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -65,6 +65,8 @@ function! airline#switch_theme(name) let w:airline_lastmode = '' call airline#load_theme() + silent doautocmd User AirlineAfterTheme + " this is required to prevent clobbering the startup info message, i don't know why... call airline#check_mode(winnr()) endfunction diff --git a/doc/airline.txt b/doc/airline.txt index 4b4a7f3a..bc36157f 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -168,6 +168,7 @@ Airline comes with some user-defined autocommands. |AirlineAfterInit| after plugin is initialized, but before the statusline is replaced +|AirlineAfterTheme| after theme of the statusline has been changed |AirlineToggledOn| after airline is activated and replaced the statusline |AirlineToggledOff| after airline is deactivated and the statusline is restored to the original