autoswap_mac from Damian Conway’s “More Instantly Better Vim”