add vim function for syncing the file