We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 400c8bd + a87b6c0 commit b097baaCopy full SHA for b097baa
plugin/diffconflicts.vim
@@ -22,6 +22,7 @@ endfunction
22
function! s:diffconfl()
23
let l:origBuf = bufnr("%")
24
let l:origFt = &filetype
25
+ let l:conflictStyle = system("git config --get merge.conflictStyle")[:-2]
26
27
" Set up the right-hand side.
28
rightb vsplit
@@ -37,7 +38,11 @@ function! s:diffconfl()
37
38
39
" Set up the left-hand side.
40
wincmd p
- silent execute "g/^=======\\r\\?$/,/^>>>>>>> /d"
41
+ if l:conflictStyle == "diff3"
42
+ silent execute "g/^||||||| \\?/,/^>>>>>>> /d"
43
+ else
44
+ silent execute "g/^=======\\r\\?$/,/^>>>>>>> /d"
45
+ endif
46
silent execute "g/^<<<<<<< /d"
47
diffthis
48
endfunction
0 commit comments