Using vim I keep getting a message saying there is a swp file available for an apache config. However, I don't see it in the working directory on in tmp. How do I delete this?
Thank you!
|
|
|
Vim swap files are normally hidden (Unix hidden files begin with a |
|||
|
|
|
This happens only when the file you were trying to edit is not saved completely on to the disk. Scenarios are :
vi/vim creates a .swp file whenever a file is opened in vi/vim. Everytime a file is opened in vi/vim, vi/vim checks for this file and if found this warning pops up This is can be avoided in two ways
"path/of/the/file/you/were/editing/.your_file_name.swp"
I am just talking about the first scenario and it is safe for only that scenario. Scenario second is the different case. |
|||
|
|
In the message, you should see the full path to the file. You can rm it by copy-pasting the path as follows:
|
|||
|
|
|
If the file you're editing is called
|
|||
|
|