projects
/
vim
/
signature_block.vim.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
signature_block.vim: add links to the latest version of the script
[vim/signature_block.vim.git]
/
plugin
/
signature_block.vim
diff --git
a/plugin/signature_block.vim
b/plugin/signature_block.vim
index
d7eb8e0
..
2c09fb7
100644
(file)
--- a/
plugin/signature_block.vim
+++ b/
plugin/signature_block.vim
@@
-15,16
+15,21
@@
" map <Leader>R :call ReplaceAllSignatures('~/.signature')<CR>
"
" " Append a signature block to all e-mails
" 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:
" http://en.wikipedia.org/wiki/Signature_block
" http://tools.ietf.org/html/rfc1855
"
" autocmd BufRead 0000-cover-letter.patch autocmd! BufRead 0000-cover-letter.patch
"
" References:
" http://en.wikipedia.org/wiki/Signature_block
" http://tools.ietf.org/html/rfc1855
"
+" The latest version of this script is available at these locations:
+" https://git.ao2.it/vim/signature_block.vim.git
+" http://www.vim.org/scripts/script.php?script_id=2872
+" https://github.com/vim-scripts/signature_block.vim
+"
"---------------------------------------------------------------------------
if exists("g:loaded_signaturePlugin") | finish | endif
"---------------------------------------------------------------------------
if exists("g:loaded_signaturePlugin") | finish | endif
@@
-105,7
+110,7
@@
func! ReplaceAllSignatures(sigfile)
endtry
call AppendSignature(a:sigfile)
endtry
call AppendSignature(a:sigfile)
-
+
" restore cursor position from mark 'z' if the mark is still valid
silent! normal `z
" restore cursor position from mark 'z' if the mark is still valid
silent! normal `z
@@
-133,7
+138,7
@@
func! ReplaceLastSignature(sigfile)
endtry
call AppendSignature(a:sigfile)
endtry
call AppendSignature(a:sigfile)
-
+
" restore cursor position from mark 'z' if the mark is still valid
silent! normal `z
" restore cursor position from mark 'z' if the mark is still valid
silent! normal `z