From 4c51377489aad31bb2b3c88406885adc056af935 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Mon, 1 Jul 2013 23:09:53 -0400 Subject: [PATCH] fixes #2 --- plugin/airline.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugin/airline.vim b/plugin/airline.vim index 8ad6b2b..116bdb7 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -117,11 +117,9 @@ function! AirlineModePrefix() return l:mode endfunction -" init colors on startup -call AirlineModePrefix() - augroup airline au! + autocmd VimEnter * call AirlineModePrefix() autocmd WinLeave * call update_statusline(0) autocmd VimEnter,WinEnter,BufWinEnter * call update_statusline(1) autocmd ColorScheme * hi clear StatusLine | hi clear StatusLineNC