On Sun, Jul 21, 2002 at 02:10:35 +1000, mdevin wrote: Just in case someone is interested, I rewrote my function to: function! UpdateLastModifiedDate() " Only if I am listed as an author in first 10 lines if search("\\%<11lAuthor:.*Mark Devin") <= 0 return endif if line("$") > 10 let l = 10 else let l = line("$") endif execute "1," . l . \ "g/Last modified: /s/Last modified: .*/Last modified: " . \ strftime("%B %d, %Y") endfunction Which seems to work OK, but my head hurts after eventually working out the required regular expression. Cheers. Mark.
Attachment:
pgp00E63NC9Xk.pgp
Description: PGP signature