How to delete the .swp files when working remotely
17,704
During that alert you can press D . Or else have a look in your current directory in your local machine.
Edit:You can also search for the file with:
find | grep ".searchRefineVertTabs.jsp.swp"
Related videos on Youtube
Author by
Vipin Verma
Updated on September 18, 2022Comments
-
Vipin Verma over 1 year
I opened a file in vi, but unfortunately while changing it the terminal crashed. Now when I Try to open the same file again in a new session it displays the following message
E325: ATTENTION Found a swap file by the name ".searchRefineVertTabs.jsp.swp" owned by: nextag dated: Tue Mar 5 03:30:12 2013 file name: ~nt/deploy/main/main.build.3616.BR_PS_1109.2239/..../searchRefineVertTabs.jsp modified: YES user name: nextag host name: li1 process ID: 9241 While opening file "searchRefineVertTabs.jsp" dated: Tue Mar 5 03:35:51 2013 NEWER than swap file! (1) Another program may be editing the same file. If this is the case, be careful not to end up with two different instances of the same file when making changes. Quit, or continue with caution. (2) An edit session for this file crashed. If this is the case, use ":recover" or "vim -r searchRefineVertTabs.jsp" to recover the changes (see ":help recovery"). If you did this already, delete the swap file ".searchRefineVertTabs.jsp.swp" to avoid this message.
I want to know how can i delete this .swp file. I couldn't find it on the path filepath/...../outpdir1`
-
Vipin Verma about 11 yearsyes i checked that, and that is what i mentioned in the last line
-
-
Mostafa Shahverdy about 11 yearsyeah, but with some configurations
.swp
file is stored localy -
Vipin Verma about 11 yearscan you please elaborate. Tried using
D
it didn't work -
Vipin Verma about 11 yearsthe file was at the following path:
./.searchRefineVertTabs.jsp.swp
so usedrm ./.searchRefineVertTabs.jsp.swp