Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.01 KB

File metadata and controls

46 lines (34 loc) · 1.01 KB

difft.nvim

asciicast

Features

  • Sync cursor with difftastic to track diffs for what you’re looking at

  • ]c and [c in a difftastic output jumps between hunks

  • gitgutter and fugitive integration

Usage

: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^^'
:Difft

You may enable :diffthis on buffers to view a traditional diff alongside it, too.