From b53043de80dddcf6f01d78b3f9c588603e2a7d8f Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 13 Aug 2013 08:09:02 +0200 Subject: [PATCH] New option: signify_update_on_focusgained --- README.md | 1 + doc/signify.txt | 9 +++++++++ plugin/signify.vim | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 356548e..0dc477a 100644 --- a/README.md +++ b/README.md @@ -204,6 +204,7 @@ let g:signify_skip_filename = { '/home/user/.vimrc': 1 } let g:signify_sign_overwrite = 1 let g:signify_update_on_bufenter = 1 +let g:signify_update_on_focusgained = 0 let g:signify_line_highlight = 1 diff --git a/doc/signify.txt b/doc/signify.txt index 3ba3e36..efb9739 100644 --- a/doc/signify.txt +++ b/doc/signify.txt @@ -171,6 +171,15 @@ NOTE: This also saves the buffer to disk! ============- + let g:signify_update_on_focusgained = 0 + +Update signs when Vim gains focus. + +NOTE: This also saves the buffer to disk! + +============- + + let g:signify_line_highlight = 0 Enable line highlighting in addition to using signs by default. diff --git a/plugin/signify.vim b/plugin/signify.vim index dc96d61..0f7cda9 100644 --- a/plugin/signify.vim +++ b/plugin/signify.vim @@ -47,7 +47,7 @@ augroup signify \ endif endif - if !has('gui_win32') + if get(g:, 'signify_update_on_focusgained') && !has('gui_win32') autocmd FocusGained * call sy#start(g:sy_path) endif augroup END