Is there a quick way to see the differences VIM is describing?
1 Answer
Create a new window, read file from disk into it and show the differences. Kind of this
vnew +read\ # | windo diffthis
More complete version is discussed at :h diff-original-file
. Also, a ton of variations in personal configs/gists/similar SO topics etc.
:!view %
might do it, but is not a diff. I think we have a Q somewhere about getting the diff…:w %.tmp
then diff with the original:!diff % %.tmp
.