From 781c40bb3d95c4d273937f99db545e6824f05d4f Mon Sep 17 00:00:00 2001 From: Liam Fleming Date: Thu, 28 Jun 2018 18:44:26 +0100 Subject: [PATCH] Create AirlineModeChanged autocmd --- autoload/airline.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/airline.vim b/autoload/airline.vim index cafedbc..4a55b45 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -189,6 +189,7 @@ function! airline#check_mode(winnr) if get(w:, 'airline_lastmode', '') != mode_string call airline#highlighter#highlight_modified_inactive(context.bufnr) call airline#highlighter#highlight(l:mode, context.bufnr) + silent doautocmd User AirlineModeChanged let w:airline_lastmode = mode_string endif