From a19e427e59884f3150874f14be43c16fb7c48c43 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 16 Jun 2019 19:29:42 +1200 Subject: Document choice of format for PutDate() --- vim/plugin/put_date.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vim/plugin/put_date.vim b/vim/plugin/put_date.vim index d911486e..486171a3 100644 --- a/vim/plugin/put_date.vim +++ b/vim/plugin/put_date.vim @@ -2,5 +2,6 @@ if exists('loaded_put_date') finish endif let loaded_put_date = 1 +let s:rfc_2822 = '%a, %d %b %Y %T %z' command! -bar -range PutDate - \ put =strftime('%a, %d %b %Y %T %z') + \ put =strftime(s:rfc_2822) -- cgit v1.2.3