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