The :Gdiff command in tpope/vim-fugitive is really handy for this too (see also vimcast 32. I've seen magit for emacs do similar things, too. Really useful for making sure you don't put in any unnecessary changes into a commit after a furious bout of writing. And for splitting an otherwise-too-big set of changes across logical commits.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.