From ac613c53c18d5da96dddd267342f204623253633 Mon Sep 17 00:00:00 2001
From: Antonio Ospite <ao2@ao2.it>
Date: Wed, 8 Jun 2016 15:52:03 +0200
Subject: [PATCH] signature_block.vim: refresh examples

Show how to write the buffer ONLY when the new signature has been added,
and show a possible use of ReplaceLastSignature()
---
 plugin/signature_block.vim | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/plugin/signature_block.vim b/plugin/signature_block.vim
index d7eb8e0..7aff4db 100644
--- a/plugin/signature_block.vim
+++ b/plugin/signature_block.vim
@@ -15,10 +15,10 @@
 " map <Leader>R :call ReplaceAllSignatures('~/.signature')<CR>
 "
 " " Append a signature block to all e-mails
-" autocmd FileType mail silent call AddSignature('~/.signature') | w
+" autocmd FileType mail if AddSignature('~/.signature') | w | endif
 "
-" " Append a signature block to cover letters generated with git-format-patch
-" autocmd BufRead 0000-cover-letter.patch silent call AddSignature('~/.signature') | w
+" " Replace the git version with a signature in cover letters generated with git-format-patch
+" autocmd BufRead 0000-cover-letter.patch if ReplaceLastSignature('~/.signature') | w | endif
 " autocmd BufRead 0000-cover-letter.patch autocmd! BufRead 0000-cover-letter.patch
 "
 " References:
-- 
2.1.4