From 133a76d2d4ea4acdd31c0d6ac82e0c7adb2d2055 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Thu, 4 Jan 2018 20:07:15 +0100 Subject: [PATCH] plugin: reset syntax highlighting on :syn off hopefully fixes #1590 --- plugin/airline.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/airline.vim b/plugin/airline.vim index 0817a6b..21322bc 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -95,6 +95,8 @@ function! s:airline_toggle() autocmd CmdwinLeave * call airline#remove_statusline_func('airline#cmdwinenter') autocmd GUIEnter,ColorScheme * call on_colorscheme_changed() + " Refresh airline for :syntax off + autocmd SourcePre *nosyntax.vim call airline_refresh() autocmd VimEnter,WinEnter,BufWinEnter,FileType,BufUnload * \ call on_window_changed() if exists('#CompleteDone')