Only add help autocmd's in help buffers

This commit is contained in:
Kenneth Benzie 2019-06-10 10:23:34 +01:00
parent 856c66e150
commit 2faa156aae

View File

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