-
Sync cursor with difftastic to track diffs for what you’re looking at
-
]cand[cin a difftastic output jumps between hunks -
gitgutter and fugitive integration
:Difft runs the difft command with the path args provided, -current is used to determine which side to sync your
buffer with.
With no path args, :Difft diffs the current buffer against the same base used by vim-gitgutter.
With no path args from one of two :diffthis windows, :Difft diffs left as old and right as new.
:diffthis
:wincmd w
:diffthis
:Difft:e /tmp/latest.lua
:Difft -current new /tmp/oldest.lua /tmp/latest.lua:e /tmp/oldest.lua
:Difft -current old /tmp/oldest.lua /tmp/latest.lua:let g:gitgutter_diff_base='HEAD^^'
:DifftYou may enable :diffthis on buffers to view a traditional diff alongside it, too.