nvim-config

Log | Files | Refs | README

xml.vim (397B)


      1 " Last Change: 2023 Sep 04
      2 
      3 function! s:updateLastMod()
      4 	" Save window and cursor location:
      5   let l:winview = winsaveview()
      6   " Use rss's preferred format for the time:
      7   execute '%s/\m\(\s*<lastBuildDate>\).*\(<\/lastBuildDate>\)/\1' . strftime('%c %Z') . '\2/'
      8   " Restore window and cursor location:
      9   call winrestview(l:winview)
     10 endfunction
     11 
     12 " autocmd BufWritePre *.xml call s:updateLastMod()