Vim interfering with Phoenix recompile after saving

I have this in my init.vim file to work around the issue:

  let $MIX_ENV = 'test'