View previous topic :: View next topic |
Author |
Message |
bluesheet n00b
Joined: 16 Dec 2004 Posts: 23
|
Posted: Tue Jun 21, 2005 8:54 am Post subject: Help, vi problem! thx |
|
|
Dear all,
when I run vi under rxvt, it will occured an warning message like that :
Code: |
skipping 4 old session file
|
the last time I use vi under rxvt, it occured
Code: |
skipping 3 old session file
|
and when the vi was started, it is not full screen, it just run under command prompt like that :
Code: |
root@localhost#vi
skipping 4 old session file
this is vi and vi is running....
|
I don't know why vi is like that, and I didn't find any vi releated file or directory under home. so Please give me some suggestion. thanks. |
|
Back to top |
|
|
boomslanger n00b
Joined: 01 Aug 2003 Posts: 67 Location: Peterborough, UK
|
Posted: Tue Jun 21, 2005 9:14 am Post subject: |
|
|
Have a look in /var/tmp, are there any files matching Ex*? These are probably the session files of which Vi speaks. _________________ Boomslanger
I reject your reality and substitute one of my own - Adam Savage, Mythbusters |
|
Back to top |
|
|
bluesheet n00b
Joined: 16 Dec 2004 Posts: 23
|
Posted: Tue Jun 21, 2005 10:00 am Post subject: |
|
|
boomslanger wrote: | Have a look in /var/tmp, are there any files matching Ex*? These are probably the session files of which Vi speaks. |
Thanks boomslanger, but...
under /var/tmp there have no Ex* file, there only have elvis1.ses and elvis2.ses, when I delete all the file and start using vi again, then the message come out again.
Code: |
root@localhost#vi abc123
skipping 1 old session file
reading abc123
Read abc123, 4 lines, 46 chars
problem still exists... pls, help
...
|
but when I using ssh to login and run vi, then it work fine, didn't have that error.
Please, give me more tips, Thanks... Thanks. |
|
Back to top |
|
|
boomslanger n00b
Joined: 01 Aug 2003 Posts: 67 Location: Peterborough, UK
|
Posted: Tue Jun 21, 2005 10:28 am Post subject: |
|
|
there are going to be some more "elvis*.ses" files hanging around somewhere, try your home directory. _________________ Boomslanger
I reject your reality and substitute one of my own - Adam Savage, Mythbusters |
|
Back to top |
|
|
falcon_za Tux's lil' helper
Joined: 31 Aug 2004 Posts: 136 Location: Nara - Japan
|
Posted: Tue Jun 21, 2005 11:04 am Post subject: |
|
|
the file you are looking for is probably named .yourfilename.swp
delete this hidden file to get rid of the problem. to prevent it from happeing again, you should close vi with it's own comands ( :q , :q!, :wq ...), and NOT by closing the terminal where it runs. otherwise, vi will not be closed properly, and will leave the kind of file it is warning you about. _________________ Why the hell am I in Asia? Don't remember. But I am still glad i am here.
You're glad someone did it for you, so help noobs. |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Tue Jun 21, 2005 1:44 pm Post subject: |
|
|
Moved from Installing Gentoo to Other Things Gentoo. |
|
Back to top |
|
|
ansient Guru
Joined: 22 Jan 2005 Posts: 445 Location: Argentina
|
Posted: Tue Jun 21, 2005 1:45 pm Post subject: |
|
|
uhm, switch to vim? |
|
Back to top |
|
|
bluesheet n00b
Joined: 16 Dec 2004 Posts: 23
|
Posted: Wed Jun 22, 2005 2:40 am Post subject: |
|
|
Dear all,
I found all the system and my home directory, but no .swp found.
and I switch to text mode with same user, then vi was work fine, didn't happen the problem, but when I switch to X, then run vi on RXVT, the problem come out
Code: |
root@localhost#vi abc
abc [NEW FILE]
asdfasjlf
asfjasflsja;lfa
askfasjl;f
:q!
root@localhost#
|
Is this problem releated to the RXVT, I am using RXVT-unicode-5.5.
thanks. |
|
Back to top |
|
|
bluesheet n00b
Joined: 16 Dec 2004 Posts: 23
|
Posted: Wed Jun 22, 2005 6:38 am Post subject: |
|
|
Dear all,
I fix the problem, because the link of vi is not link to vim, it linked to elvis, so when I change the link to vi that's correct, everything work fine. Thanks all to answer my question. Thanks. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|