LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-09-2004, 05:32 PM   #1
andrewstr
Member
 
Registered: Oct 2003
Location: WA--USA
Distribution: Red Hat 9, Suse 10.2
Posts: 144

Rep: Reputation: 15
Question 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
 
Old 01-09-2004, 06:00 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 60
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.
 
Old 01-09-2004, 06:59 PM   #3
andrewstr
Member
 
Registered: Oct 2003
Location: WA--USA
Distribution: Red Hat 9, Suse 10.2
Posts: 144

Original Poster
Rep: Reputation: 15
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.

Last edited by andrewstr; 01-09-2004 at 07:08 PM.
 
Old 01-10-2004, 11:20 AM   #4
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
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
 
Old 01-10-2004, 06:21 PM   #5
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 392

Rep: Reputation: 55
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
 
1 members found this post helpful.
Old 01-12-2004, 02:40 PM   #6
andrewstr
Member
 
Registered: Oct 2003
Location: WA--USA
Distribution: Red Hat 9, Suse 10.2
Posts: 144

Original Poster
Rep: Reputation: 15
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!
 
Old 03-10-2011, 02:35 AM   #7
rickyfromblv
LQ Newbie
 
Registered: Mar 2011
Posts: 1

Rep: Reputation: 0
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 !!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help me eliminate these error message from various programs Navyblue Linux - Software 5 03-10-2006 02:25 PM
Error: Bad repository file ///etc/yum.repos.d/dag.repo. Skipping dr_zayus69 Linux - Software 1 07-13-2005 12:56 AM
FC2 test 3 mouse skipping a beat, movie skipping also jang Fedora 1 10-28-2004 08:42 PM
cp or mv: skipping file...it was replaced da_kidd_er Linux - General 3 10-21-2004 02:56 AM
Long delay and error message starting remote X session lotus49 Linux - General 3 10-11-2004 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration