Only add help autocmd's in help buffers
This commit is contained in:
parent
856c66e150
commit
2faa156aae
@ -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 _
|
||||||
|
Loading…
x
Reference in New Issue
Block a user