From 49671d0a11466a6e5e1dfca5dd480cab27426318 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 13 Nov 2018 21:58:54 +0100 Subject: [PATCH] terminal: do not reset airline theme on TerminalOpen remove autocommand, that would overwrite the airline theme on :term (e.g. After a :AirlineTheme monochrome and then using `:term` the autocommand would reset the theme back to the one given in the .vimrc) --- plugin/airline.vim | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugin/airline.vim b/plugin/airline.vim index 9f65012..9118fd5 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -102,9 +102,6 @@ function! s:airline_toggle() " Make sure that g_airline_gui_mode is refreshed autocmd OptionSet termguicolors call on_colorscheme_changed() endif - if exists("##TerminalOpen") - autocmd TerminalOpen * call on_colorscheme_changed() - endif " Set all statuslines to inactive autocmd FocusLost * call airline#update_statusline_focuslost() " Refresh airline for :syntax off