diff options
Diffstat (limited to 'vim/autoload/html')
-rw-r--r-- | vim/autoload/html/timestamp.vim | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/vim/autoload/html/timestamp.vim b/vim/autoload/html/timestamp.vim deleted file mode 100644 index 1b3ea830..00000000 --- a/vim/autoload/html/timestamp.vim +++ /dev/null @@ -1,15 +0,0 @@ -function! html#timestamp#Update() abort - if !&modified - return - endif - let l:cv = winsaveview() - call cursor(1,1) - let l:li = search('\C^\s*<em>Last updated: .\+</em>$', 'n') - if l:li - let l:date = substitute(system('date -u'), '\C\n$', '', '') - let l:line = getline(l:li) - call setline(l:li, substitute(l:line, '\C\S.*', - \ '<em>Last updated: '.l:date.'</em>', '')) - endif - call winrestview(l:cv) -endfunction |