Modified the vim markdown template and the
corresponding rules in .vimrc
This commit is contained in:
1
.vimrc
1
.vimrc
@@ -255,7 +255,6 @@ autocmd bufWritePost,filewritepost *.py execute "normal `a"
|
||||
|
||||
autocmd BufNewFile *.md,*.mkd so $HOME/.vim/templates/md
|
||||
autocmd BufNewFile *.md,*.mkd %s/title.*/\=''.expand('%:r')/e
|
||||
autocmd BufNewFile *.md,*.mkd exe "g/created:.*/s//created: " .strftime("%Y-%m-%d %H:%M")
|
||||
autocmd BufWritePre,filewritepre *.md,*.mkd execute "normal ma"
|
||||
autocmd BufWritePre,filewritepre *.md,*.mkd exe "g/Updated:.*/s//Updated: " .strftime("%Y-%m-%d %H:%M")
|
||||
autocmd bufWritePost,filewritepost *.md,*.mkd execute "normal `a"
|
||||
|
||||
Reference in New Issue
Block a user