Vi(m) tip #11: remove swap file of current file (e.g. after a recover operation)

Alec Jacobson

June 22, 2011

weblog/

You can remove the swap file (.*.swp) of the current file in vim with a simple command in command mode:
:!rm .%.swp