From 904ac4eb0b98efeff0a309498c9e1eac4f891ccb Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 20 Nov 2018 14:51:22 +0100 Subject: [PATCH] plugin: Reload terminal extension on :term command --- plugin/airline.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/airline.vim b/plugin/airline.vim index 9ac05c7f..c620c7f3 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -128,6 +128,7 @@ function! s:airline_toggle() autocmd FocusGained * unlet! w:airline_lastmode | :call airline_refresh() endif + autocmd TerminalOpen * :call airline#load_theme() " reload current theme for Terminal, forces the terminal extension to be loaded autocmd TabEnter * :unlet! w:airline_lastmode | let w:airline_active=1 autocmd BufWritePost */autoload/airline/themes/*.vim \ exec 'source '.split(globpath(&rtp, 'autoload/airline/themes/'.g:airline_theme.'.vim', 1), "\n")[0]