mirror of
https://github.com/vim/vim
synced 2025-03-29 04:56:43 +01:00
closes: #16331 Signed-off-by: h-east <h.east.727@gmail.com> Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
13 lines
280 B
VimL
13 lines
280 B
VimL
" Update the date of following line in vim.vim.rc.
|
|
" '" Last Change: '
|
|
"
|
|
language C
|
|
normal gg
|
|
let pat = '^"\s*Last\s*Change:\s\+'
|
|
let lnum = search(pat, 'We', 10)
|
|
if lnum > 0
|
|
exec 'norm! lD"=strftime("%Y %b %d")' . "\rp"
|
|
silent update
|
|
endif
|
|
quitall!
|
|
" vim:ts=4 sw=4 et
|