Normally, you don\'t actually edit a file in vim. If you run vim foo, edit, write and quit, vim unlinks foo and creates a new file and a new link
vim foo
foo
Check out the help for the backupcopy option and the notes on crontab in particular. The short answer is
backupcopy
crontab
:set backupcopy=yes