From 2784a69fe3096b9148754990ab896db7f1212ca3 Mon Sep 17 00:00:00 2001 From: chawley Date: Wed, 10 Apr 2024 10:25:50 -0400 Subject: [PATCH] Removed timestamps from Markdown Files I removed the time from markdown `fileupdated` datestamps. I don't need that level of reference. The date a file was updated is fine. --- .vimrc | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.vimrc b/.vimrc index 52365bb..3312056 100644 --- a/.vimrc +++ b/.vimrc @@ -318,17 +318,6 @@ hi SpellBad cterm=underline ctermbg=none ctermfg=red hi SpellLocal cterm=underline ctermbg=none ctermfg=gray hi SpellRare cterm=underline ctermbg=none ctermfg=gray -" --------------------------------------------------------------------------------------------------------------------- -" ==> Templates: markdown documents (.md) -" -" autocmd BufNewFile *.md so $HOME/.vim/templates/md -" autocmd BufNewFile *.md %s/filename/\=expand('%:t:r')/g -" autocmd BufNewFile *.md exe "g/^- Created :.*/s//- Created : " .strftime("%Y-%m-%d") -" autocmd BufNewFile *.md exe "normal Go" -" autocmd BufWritePre,filewritepre *.md execute "normal! ma" -" autocmd BufWritePre,filewritepre *.md exe "g/^- Updated :.*/s//- Updated : " .strftime("%Y-%m-%d %H:%M") -" autocmd BufWritePost,filewritepost *.md execute "normal! `a" - " --------------------------------------------------------------------------------------------------------------------- " ==> Templates: markdown documents with frontmatter (.md) @@ -339,7 +328,7 @@ autocmd BufNewFile *.md exe "g/^filename:.*/s//filename: " .expand('%:t:r') autocmd BufNewFile *.md exe "g/^filecreated:.*/s//filecreated: " .strftime("%Y-%m-%d") autocmd BufNewFile *.md exe "normal Go" autocmd BufWritePre,filewritepre *.md execute "normal! ma" -autocmd BufWritePre,filewritepre *.md exe "g/^fileupdated:.*/s//fileupdated: " .strftime("%Y-%m-%d %H:%M") +autocmd BufWritePre,filewritepre *.md exe "g/^fileupdated:.*/s//fileupdated: " .strftime("%Y-%m-%d") autocmd BufWritePost,filewritepost *.md execute "normal! `a" " --------------------------------------------------------------------------------------------------------------------- " ==> Templates: shell scripts (.sh) @@ -349,7 +338,7 @@ autocmd BufNewFile *.sh :%s/filename/\=expand('%:t:r')/g autocmd BufNewFile *.sh exe "g/CREATED:.*/s//CREATED: " .strftime("%Y-%m-%d") autocmd BufNewFile *.sh exe "normal Go" autocmd BufWritePre,filewritepre *.sh execute "normal ma" -autocmd BufWritePre,filewritepre *.sh exe "g/UPDATED:.*/s//UPDATED: " .strftime("%Y-%m-%d %H:%M") +autocmd BufWritePre,filewritepre *.sh exe "g/UPDATED:.*/s//UPDATED: " .strftime("%Y-%m-%d") autocmd bufWritePost,filewritepost *.sh execute "normal `a" " ---------------------------------------------------------------------------------------------------------------------