Convenient command to see the difference between the current buffer and the file it was loaded from, thus the changes you made.
Found here: https://github.com/jfrazelle/.vim
if !exists(":DiffOrig")
command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
\ | wincmd p | diffthis
endif
Lifepillar 8 years ago
See also
:help DiffOrig;)