vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

update_date.vim (280B)


      1 " Update the date of following line in vim.vim.rc.
      2 "     '" Last Change:  '
      3 "
      4 language C
      5 normal gg
      6 let pat = '^"\s*Last\s*Change:\s\+'
      7 let lnum = search(pat, 'We', 10)
      8 if lnum > 0
      9    exec 'norm! lD"=strftime("%Y %b %d")' . "\rp"
     10    silent update
     11 endif
     12 quitall!
     13 " vim:ts=4 sw=4 et