title: How can I strip whitespace only from changed lines
body: <p>I would like to configure Vim to only strip off the trailing whitespace from lines I've changed. My usecase is that a lot of the files in our repository have trailing whitespace on some of their lines and if I indiscriminately strip off all the trailing whitespace, then git blame shows me as the person who changed those lines. I would like to do this in Vim, rather than via a pre-commit hook, because I do not wish to have to reload the file in Vim, as that confuses my undo history.</p>