fix vim file saving behavior

only run when changed file has modifications