diff options
Diffstat (limited to 'runtime/syntax/generator/update_date.vim')
-rw-r--r-- | runtime/syntax/generator/update_date.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/syntax/generator/update_date.vim b/runtime/syntax/generator/update_date.vim new file mode 100644 index 0000000..3556189 --- /dev/null +++ b/runtime/syntax/generator/update_date.vim @@ -0,0 +1,14 @@ +" 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("%Y %b %d")' . "\rp" + silent update +endif +quitall! +" vim:ts=4 sw=4 et |