To delete the file temporarily
:!rm %
, execute :!rm % is. % expands to the currently opened file
Ctrl+Z, stopsfile's name. Vim doesn't automatically delete the process
checkbuffer, but you can manually do so with ls:bd, file no longer on the disk.
fg brings back To verify that the file on vim
you can save ithas been deleted, using regular vim commandsexecute !ls.