Update gutter when possible

016ec07795030e8c934ea35f5cd17e00567827d6
Alexis Sellier committed ago 1 parent 44d30ccf
.vimrc +3 -0
82 82
    let col = col('.') - 1
83 83
    return !col || getline('.')[col - 1]  =~ '\s'
84 84
  endfunction
85 85
endif
86 86
87 +
" Update gutter whenever possible
88 +
au CursorHold,CursorHoldI,FocusLost * :GitGutter
89 +
87 90
" Save on focus lost
88 91
au FocusLost * call s:SaveOnFocusLost()
89 92
function! s:SaveOnFocusLost()
90 93
  if !empty(expand('%:p')) && &modified
91 94
    write