VIM Tips: DiffOrig a.k.a. What the crap changes did I make?
Sometimes I'll come back to my computer (usually from getting coffee or a pensive pacing session) and see that I've made changes to a file in vim without actually saving those changes. Did I forget to save actual edits to the file or did I happen to mash on my keyboard accidentally while vim was in the foreground?
To check what you've changed since the last time you saved a file, you can use the following command to pull up a diff of the file contents on disk against the file contents open in your vim buffer:
:DiffOrig












