#Vim# 修改python文件头信息:Last Modifiedfunction UpdateDate() call cursor(5,1) if search('Last Modified') != 0 let line = line('.') call setline(line, "# Last Modified :".strftime("%Y-%m-%d %X")) endifendfautocmd FileWritePre,BufWritePre *.py ks|call UpdateDate()|'s