Created
August 1, 2017 23:15
-
-
Save mhartington/de1e3085af7fd2788d2b455481cb8a98 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| augroup ConflictMarkerDetect | |
| autocmd! | |
| autocmd BufReadPost * call HighlightConflicts() | |
| augroup END | |
| function! HighlightConflicts() abort | |
| syntax region conflictHead | |
| \ containedin=ALL | |
| \ start=/^<<<<<<< \@=/ | |
| \ end=/^=\@=/ | |
| syntax region conflictMerge | |
| \ containedin=ALL | |
| \ start=/^=======\zs$/ | |
| \ end=/^>>>>>>>\s\w*/ | |
| hi conflictHead guifg=#ffffff guibg=#99c794 | |
| hi conflictMerge guifg=#ffffff guibg=#62b3b2 | |
| endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment