I use Vim. I open a file. I edit it and I want to see what I've edited before I save it.
How can I do this in Vim?
:w !diff % -
2.1m questions
2.1m answers
60 comments
57.0k users