diff --git a/plugin/autocmds.vim b/plugin/autocmds.vim index 8b16cfb..5dcdcfa 100644 --- a/plugin/autocmds.vim +++ b/plugin/autocmds.vim @@ -8,8 +8,9 @@ augroup benieAugroup " Highlight conflict markers in any filetype au FileType * call matchadd('Todo', '^\(<<<<<<<\||||||||\|=======\|>>>>>>>\)\s\ze.*$') - " Update `Last change: ` on write then jump back previous position - au BufWritePost *.txt silent! call do#last_change() + " Update `Last change: ` on write & go back previous cursor position + au FileType help au BufWritePre + \ 1s/Last change: \zs.*$/\=strftime('%Y %b %d')/e|norm!`` " Read template into buffer then send line 1 to the black hold register au BufNewFile todo.md read ~/.vim/templates/skeleton.todo.md | 1delete _