aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin/put_date.vim
blob: 29cf886e65e6a37d926537ab0735f7a9d909b677 (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! -range PutDate
      \ <line1>put =strftime('%a, %d %b %Y %T %z')