Skip to content

Commit

Permalink
Disable realtime updates when Vim older than 7.3.105.
Browse files Browse the repository at this point in the history
  • Loading branch information
airblade committed Feb 14, 2014
1 parent f7368e0 commit f291db0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.mkd
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ let g:gitgutter_realtime = 0
let g:gitgutter_eager = 0
```

Note the realtime updating requires Vim 7.3.105 or higher.


### Customisation

Expand Down
6 changes: 6 additions & 0 deletions plugin/gitgutter.vim
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ let g:loaded_gitgutter = 1

" Initialisation {{{

" Pre-requisites.
if v:version < 703 || (v:version == 703 && !has("patch105"))
let g:gitgutter_realtime = 0
echom "vim-gitgutter: realtime sign updates disabled (requires Vim 7.3.105+)."
endif

function! s:set(var, default)
if !exists(a:var)
if type(a:default)
Expand Down

0 comments on commit f291db0

Please sign in to comment.