mirror of
https://github.com/vim/vim.git
synced 2025-07-04 23:07:33 -04:00
15 lines
300 B
VimL
15 lines
300 B
VimL
|
" Update the date of following line in vim.vim.rc.
|
||
|
" '" Last Change: '
|
||
|
"
|
||
|
language C
|
||
|
silent new vim.vim
|
||
|
normal gg
|
||
|
let pat = '^"\s*Last\s*Change:\s\+'
|
||
|
let lnum = search(pat, 'We', 10)
|
||
|
if lnum > 0
|
||
|
exec 'norm! lD"=strftime("%b %d, %Y")' . "\rp"
|
||
|
silent update
|
||
|
endif
|
||
|
quitall!
|
||
|
" vim:ts=4 sw=4 et
|