Replace ad hoc conflict markers with plugin

This commit is contained in:
2022-11-07 14:26:55 +00:00
parent 32610db521
commit 330329ef2b
2 changed files with 2 additions and 3 deletions

View File

@@ -12,9 +12,6 @@ augroup benieAugroup
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\ | exe "normal! g'\"" | endif
" Highlight conflict markers in any filetype
au FileType * call matchadd('Todo', '^\(<<<<<<<\s.*\||||||||\|=======\|>>>>>>>\s.*\)$')
" Update `Last change: <date>` on write & go back previous cursor position
au FileType help au BufWritePre <buffer>
\ 1s/Last change: \zs.*$/\=strftime('%Y %b %d')/e|norm!``