tpope/vim-eunuch — pull request #2 by cehoffman (2012-05-11 14:55:19+00:00)
Title: Keep the alternate file on rename

I had pretty much this exact function in my vimrc. My version uses keepalt to maintain the alternate through the rename so it really does act like a rename of the file and not a write and delete.