This question already has an answer here:
Out of rage, I quit
vim by using
:wq!!!. This created a file named
!! references the previous command, attempting to interact with it yields interesting results.
rm ./!! and
rm -- !!. Both would pull in the previous command (as it should).
An easy solution is to simply start a shell that doesn't treat
!! like anything special, but that's too easy.
How can I properly interact with the file in bash?