Problem description: When using the vi editor, sometimes the system prompts that the exchange file swp already exists, which makes it impossible to edit the current file. How to delete the swp file? Analyze the problem: When you open a file, the vi editor will generate such a. swp file to prevent accidents (similar to Microsoft Word