I had vim open in a terminal; I needed to check some other things so I typed Ctrl-Z. When I later type fg, it just stopped again:
myprompt$ fg
vim newfile path/to/existingfile
[1]+ Stopped vim newfile path/to/existingfile
[1]+ Stopped vim newfile path/to/existingfile
myprompt$
Sometimes, as shown above, it even stops twice.
It looks like the shell is attempting to resume vim but that it just halts again.
I have quite a bit of work typed into newfile; how can I either resume successfully or kill the job and retain the work I did?
:shellto spawn a new shell. – muru Oct 28 '15 at 08:07