Linux Edit the file appears Swap file ".xxx.swp" already exists!

tags: Linux  vim  swp

Error Messages

When using Linux vim command to open the file, a message always appears as shown below, because of the presence .swp caused by temporary files.

swp Introduction

.swp, vim in swp ie swap (swap partition) shorthand, is a hidden temporary files generated when vim to edit files to back up the contents of the buffer.

If the file is normal exit, the file will be automatically deleted.

If the file is a non-normal exit, such as time-out to exit the terminal or use Ctrl + Z to exit vim, it will generate a .XXX (file name) .swp files, and ask at each edit.

Solution

Use ls -a command to see if there is .swp file and use the rm -f .xx.swp delete the file, you can solve the problem when an editor asked.

 

Intelligent Recommendation

Solve vim / vi to edit files appear Swap file "xxx" already exists! Problems

I. Description of the problem Second, the cause of the problem When I vim / etc / profile command to view environment variables appear above tips, troubleshooting as follows: ! Carefully read the tips...

Solve Swap file ".ceshi.c.swp" already exists! Problems

About swp file: Using vi, often able to see swp this document, then this document is how to generate it. When you open a file, vi will generate that. (Filename) swp file for a rainy day, assuming you ...

Solve the swap file "* .swp" already exists! problem

in vim editing process under Linux, for some reason abnormal exit the file being edited, edit the file again, it will appear the following prompt: file is actually using vim editor to copy a temporary...

Swap file ".hive-site.xml.swp" already exists

Swap file ".hive-site.xml.swp" already exists 1. Use the command [hadoop@slaver1 conf]$ ls -la to find hidden files, and then delete the reported error files. [hadoop@slaver1 conf]$ rm -rf ....

Solve swap file "*.swp" already exists! problem

During the vim editing process under Linux, the file being edited is abnormally exited for some reason. When the file is edited again, the following prompt will appear: Using vim to edit a file is act...

More Recommendation

linux_Solve the swap file "*.swp" already exists! problem

During the vim editing process under Linux, the file being edited is abnormally exited due to some reason. When the file is edited again, the following prompt will appear: Don't panic in the above sit...

swap file "*.swp" already exists! Solution

Programming under Linux will inevitably open multiple vim editing. If the same file was not saved during the last editing, it will appear the next time you want to edit: the reason: Using vim to edit ...

The solution to swap file "*.swp" already exists!

Programming under Linux will inevitably open multiple vim to edit the same file together, then save again and it will appear: swap file "*.swp" already exists! [O]pen Read-Only, (E)dit anywa...

Solve Swap file "* .swp" already exists! problem

  During the VIM editing process under Linux, the file is edited by an exception exiting the file again, then edit the file again: Using the VIM Editing file is actually a first Copy a temporary ...

[Solution] Swap file "~ / .bash_profile.swp" already exists!

Edit Profile Exit, then edit again, receive a prompt: Restore the original file Re-edit....

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top