@@ -61,6 +61,25 @@ edit-args = [
61
61
' echomsg "Warning: using plain `vimdiff` as a diff editor is not recommended. See https://github.com/jj-vcs/jj/wiki/Vim for alternatives."' ,
62
62
" -c" , " echohl None" ,
63
63
]
64
+ # Not configuring diff-args, as they currently don't seem to work (see
65
+ # https://github.com/jj-vcs/jj/issues/6206)
66
+
67
+ [merge-tools .gvimdiff ]
68
+ program = " gvim"
69
+ # `-d` enables diff mode. `-f` makes vim run in foreground even if it starts a GUI.
70
+ # The other options make sure that only the output file can be modified.
71
+ merge-args = [" -f" , " -d" , " $output" , " -M" , " $left" , " $base" , " $right" ,
72
+ " -c" , " wincmd J" , " -c" , " set modifiable" , " -c" , " set write" ,
73
+ " -c" , " /<<<<<</+2" ]
74
+ merge-tool-edits-conflict-markers = true
75
+ # Directory diffing is barely usable in vimdiff without additional plugins
76
+ edit-args = [
77
+ " -f" , " -d" , " $left" , " $right" , " -c" , " echohl WarningMsg" , " -c" ,
78
+ ' echomsg "Warning: using plain `vimdiff` as a diff editor is not recommended. See https://github.com/jj-vcs/jj/wiki/Vim for alternatives."' ,
79
+ " -c" , " echohl None" ,
80
+ ]
81
+ diff-invocation-mode =" file-by-file"
82
+ diff-args = [" -f" , " -d" , " $left" , " $right" ]
64
83
65
84
# if you change the settings for vscode, please do the same for vscodium
66
85
[merge-tools .vscode ]
0 commit comments