From fa4c921557032eed3fe6ba68ce6bf6ff8ccc422e Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Mon, 11 Mar 2013 02:01:00 +0100 Subject: [PATCH] do not set colors once again at every buffer switch Now colors only get set at plugin loading and when :colo is used. --- plugin/signify.vim | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugin/signify.vim b/plugin/signify.vim index 858a113..f219bb5 100644 --- a/plugin/signify.vim +++ b/plugin/signify.vim @@ -90,9 +90,8 @@ endif " Initial stuff {{{1 aug signify au! - au ColorScheme * call s:colors_set() - au BufWritePost,FocusGained * call s:start(resolve(expand(':p'))) - au BufEnter * let s:colors_set = 0 | call s:start(resolve(expand(':p'))) + au ColorScheme * call s:colors_set() + au BufWritePost,BufEnter,FocusGained * call s:start(resolve(expand(':p'))) aug END com! -nargs=0 -bar SignifyToggle call s:toggle_signify() @@ -146,7 +145,7 @@ function! s:start(path) abort let s:sy[a:path].last_jump_was_next = -1 endif - if s:sign_overwrite == 0 + if !s:sign_overwrite call s:sign_get_others(a:path) endif