LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to eliminate vi message--skipping 1 old session file (https://www.linuxquestions.org/questions/linux-software-2/how-to-eliminate-vi-message-skipping-1-old-session-file-133190/)

andrewstr 01-09-2004 04:32 PM

How to eliminate vi message--skipping 1 old session file
 
I use vi for editing files on a Slackware 9.1 system. Once while I was editing a file, I used CONTROL+Z to put the edit job in the background and logged out without closing vi. Now every time I edit a file, vi gives me this message <b>skipping 1 old session file</b> and then loads the file new file that I want to edit.

How can I get rid of this message?

Thanks!

ANdy

homey 01-09-2004 05:00 PM

May be different in Slack but my Redhat box created a .swp file which you can see from the command: ls -a . You should be able to delete that to stop the message.

andrewstr 01-09-2004 05:59 PM

Thanks for the idea, but no .swp file exists on the hard drive. I checked my home directory and then used find / -name .swp but didn't find anything.

g-rod 01-10-2004 10:20 AM

The swp file is in the same directory as the original file. It is prepending with a . and postpended with .swp.

As Homey said you need to do an
ls -a *.sqp to see these files.
The -a shows the hidden files (files starting with a .).

Hope that helps

lyle_s 01-10-2004 05:21 PM

Also, have a look in /var/tmp. There will probably a bunch of elvisN.ses, where N is some number.

I don't know what the point of them is. They do seem to build up over time.

Get rid of those to get rid of that message.

Lyle

andrewstr 01-12-2004 01:40 PM

Lyle, your suggestion worked. I found elvis1.ses in the /var/tmp directory. I deleted it and now the message does not appear. Thank you!

rickyfromblv 03-10-2011 01:35 AM

Thx a lot
 
you helped me a lot, i was looking for an anwser to this problem of vi and it works deleting files en /var/tmp !!!


All times are GMT -5. The time now is 10:39 PM.