blob: 0828abe4af1b4619644bb60c36d5cf59df4f47ab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
if exists('loaded_put_date')
finish
endif
let loaded_put_date = 1
" Define a :PutDate command that inserts a line into the buffer with an
" RFC-2822 date string, using the system strftime() implementation. Allow it
" to accept a range which defaults to the current line.
"
command! -bar -range PutDate
\ <line1>put =strftime('%a, %d %b %Y %T %z')
|