Preserve function plus a few suggested uses G :call Preserve("normal gg=G") Removes trailing whitespace w :call Preserve("%s/\s\+$//e")
Spoke to Drew Neil and Johnathan Palardy on twitter, who came up with with the preserve trick and made it a function, respectifvely, and they are cool with this.