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.
This commit is contained in:
Andy Stewart
2013-03-06 14:08:44 +01:00
parent 177365691b
commit b6c5364436

View File

@@ -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
" }}}