mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
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:
@@ -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
|
||||
|
||||
" }}}
|
||||
|
||||
Reference in New Issue
Block a user