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.
This commit is contained in:
15
.vimrc
15
.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"
|
||||
|
||||
" ---------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user