Found a way of detecting if the file needs to be written. If it's a normal buffer...
tree99b03c811f7dba930316440437848f5fb17691a2
-rw-r--r-- 133 Makefile
-rw-r--r-- 8182 git-branch-info.vim