runtime(vim): include Vim Syntax generator
fixes: #13939 closes: #14021 related: vim-jp/syntax-vim-ex#28 Signed-off-by: h-east <h.east.727@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
e71022082d
commit
9b53c052d5
14
runtime/syntax/generator/update_date.vim
Normal file
14
runtime/syntax/generator/update_date.vim
Normal file
@ -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("%b %d, %Y")' . "\rp"
|
||||
silent update
|
||||
endif
|
||||
quitall!
|
||||
" vim:ts=4 sw=4 et
|
||||
Reference in New Issue
Block a user