diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index 11a5adf..19a8df7 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -208,6 +208,11 @@ augroup gitgutter autocmd TabEnter * call settabvar(tabpagenr(), 'gitgutter_didtabenter', 1) + " Ensure that all buffers are processed when opening vim with multiple files, e.g.: + " + " vim -o file1 file2 + autocmd VimEnter * if winnr() != winnr('$') | :GitGutterAll | endif + if !has('gui_win32') autocmd FocusGained * call gitgutter#all() endif