From b6c5364436c047bb8355f8ed07a01601de095825 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Wed, 6 Mar 2013 14:08:44 +0100 Subject: [PATCH] Run GitGutter when focus is gained. This updates the signs on the current file when you return to GUI vim. For example, you make some changes in Vim, tab to your shell and commit them, then tab back to Vim; at this point you want the signs to update automatically for you. --- plugin/gitgutter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index cb62469..3c1bf58 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -419,7 +419,7 @@ endfunction augroup gitgutter autocmd! - autocmd BufReadPost,BufWritePost,FileReadPost,FileWritePost * call GitGutter() + autocmd BufReadPost,BufWritePost,FileReadPost,FileWritePost,FocusGained * call GitGutter() augroup END " }}}