sindrets / diffview.nvim

Single tabpage interface for easily cycling through diffs for all modified files for any git rev.
Other
3.6k stars 101 forks source link

Show unsaved buffer / file changes #390

Closed uloco closed 1 year ago

uloco commented 1 year ago

I am not quite sure if I can use this plugin to show unsaved buffer changes before I save a file. So I mean not concerning git but local file state vs dirty buffer state. Is this possible?

sindrets commented 1 year ago

No need for a plugin to do this. The vim docs already describe how to set up a simple command to achieve this: :h diff-original-file.

I use a slight variation on this command myself.

uloco commented 1 year ago

Ty I'll give it a try