1
0
Fork 0
mirror of https://github.com/vim/vim synced 2025-03-29 04:56:43 +01:00
vim/runtime/syntax/generator/update_date.vim
h-east f0ab3e4e41
runtime(vim): Improve syntax script generator for Vim Script
closes: 

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>
2024-12-29 15:14:37 +01:00

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