Replace ad hoc conflict markers with plugin

This commit is contained in:
Kenneth Benzie 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!``

2
vimrc
View File

@ -67,6 +67,8 @@ let g:ale_cmake_cmakelint_options =
" Version control differences in the sign column
Pack 'mhinz/vim-signify'
let g:signify_sign_change = '~'
" Conflict marker utilities
Pack 'rhysd/conflict-marker.vim'
" vim-textobj-user - library for creating text objects
Pack 'kana/vim-textobj-user'