Table of Contents
if v:version > 800 set diffopt+=indent-heuristic endif
diffopt
:help diffopt
set diffopt
vimdiff FILELEFT FILERIGHT
:echo &diffopt or set diffopt
Step1
set diffopt internal,filler,closeoff
Step2
set diffopt& diffopt+=algorithm:histogram,indent-heuristic set diffopt internal,filler,closeoff,algorithm:histogram,indent-heuristic
example
- myers (default)
- minimal
- patience
- histogram
:set diffopt+=algorithm:patience :set diffopt+=indent-heuristic :set diffopt+=algorithm:myers :set diffopt+=algorithm:histogram
reference
The inefficiency of the external diff https://vimways.org/2018/the-power-of-diff/