Disable 'update_on_bufenter' per default

This commit is contained in:
Marco Hinz 2013-06-06 12:39:24 +02:00
parent c2d062ab12
commit 24840c28f3
2 changed files with 3 additions and 6 deletions

View File

@ -150,12 +150,9 @@ Overwrite signs set by other plugins by default.
============- ============-
let g:signify_update_on_bufenter = 1 let g:signify_update_on_bufenter = 0
Update signs when entering a buffer. Update signs when entering a buffer that was modified.
NOTE: Disable this if you're working in huge repositories and experience
delays.
============- ============-

View File

@ -54,7 +54,7 @@ augroup signify
autocmd BufRead,BufWritePost * call s:start(s:path) autocmd BufRead,BufWritePost * call s:start(s:path)
autocmd VimEnter,ColorScheme * call s:colors_set() autocmd VimEnter,ColorScheme * call s:colors_set()
if get(g:, 'signify_update_on_bufenter', 1) if get(g:, 'signify_update_on_bufenter')
autocmd BufEnter * if &modified | call s:start(s:path) | endif autocmd BufEnter * if &modified | call s:start(s:path) | endif
endif endif