LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   message when opening file? (https://www.linuxquestions.org/questions/linux-newbie-8/message-when-opening-file-22388/)

a_hic 06-02-2002 07:15 AM

message when opening file?
 
I've added a path to /etc/ld.so.conf using vi, when i reopen it I get:
"Found a swap file by the name ".ld.so.conf.swp"
dated: Sun Jun 2 10:56:29 2002
owned by: root
file name: /etc/ld.so.conf
modified: YES
host name: HIC
user name: root
process ID: 1318
While opening file "ld.so.conf"
dated: Sun Jun 2 11:51:04 2002

(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 ld.so.conf"
to recover the changes (see ":help recovery)".
If you did this already, delete the swap file ".ld.so.conf.swp"
to avoid this message. "

what mean this?

Mara 06-02-2002 08:31 AM

It looks like you have killed vi when editing the file etc. If no changes are lost, you can safely delete the .swp file.

MasterC 06-02-2002 09:06 AM

I have a quick semi-related question. Why are you using vi?

a_hic 06-02-2002 09:25 AM

I am using vi to edit ld.so.conf, in order to add a path to this file,
this is for installing dsniff.

acid_kewpie 06-02-2002 09:42 AM

one would guess he is using vi because he likes it. it's an indiviual choice... you may prefer write or whatever... i use pico.

Mara 06-02-2002 12:53 PM

But vim fans are sometimes annoying. Especially when vim is the only one editor on installation/rescue cd.

trickykid 06-02-2002 02:05 PM

Quote:

Originally posted by MasterC
I have a quick semi-related question. Why are you using vi?
I would suggest anyone using *nix to learn vi, first its available on about any *nix OS, second, there might be times when you only have vi or vim to use to edit any files.
I use vi and prefer it, its quick and easy to use.

Noerr 06-02-2002 02:50 PM

vi=toughest text editor on planet for me. I made some notes for myself to look 'em up everytime I need to edit crontab, other than that never use it.

pico is my favourite.

Mara 06-03-2002 11:27 AM

Quote:

Originally posted by trickykid
I would suggest anyone using *nix to learn vi, first its available on about any *nix OS, second, there might be times when you only have vi or vim to use to edit any files.
I use vi and prefer it, its quick and easy to use.

I disagree. It took me 2 months to remember how to exit it (in that time, when I had started it by accident I just switched to another console and killed it...). I KNOW it may be easy and powerful, but only if you know all the keys! I don't have enought time to learn them... That's why I prefer joe (and it's help).

Dunkalis 06-03-2002 01:10 PM

I personally prefer Nano. Nice and easy. I still need to get Pico, though. Pico is nice. I've heard good things about Emacs, but I've never used it.

trickykid 06-03-2002 01:26 PM

Quote:

Originally posted by Mara

I disagree. It took me 2 months to remember how to exit it (in that time, when I had started it by accident I just switched to another console and killed it...). I KNOW it may be easy and powerful, but only if you know all the keys! I don't have enought time to learn them... That's why I prefer joe (and it's help).

Well I don't mean you have to use it for all your editing, I just suggest anyone to get some basics of it so if your ever stuck in that situation where you have to use it, then your not totally stuck. ;)

Mara 06-03-2002 01:45 PM

Quote:

Originally posted by trickykid
Well I don't mean you have to use it for all your editing, I just suggest anyone to get some basics of it so if your ever stuck in that situation where you have to use it, then your not totally stuck. ;)
Well, for me it's easier to write my own editor and have its source always with me than to learn vi. Sorry... ;)

MasterC 06-06-2002 04:48 AM

Quote:

Originally posted by trickykid
Well I don't mean you have to use it for all your editing, I just suggest anyone to get some basics of it so if your ever stuck in that situation where you have to use it, then your not totally stuck. ;)
Yeah, you are definitely right. Today I was installing LFS and during the install I installed VIM. Although I ended up being able to edit it with PICO from my host system, I didn't know that at the time... So I typed vi file. How dumb was that? Now I am in VIM. Stuck. Stuck like no other. Pressing CTRL + C thinking it might kick it out, nope. Finally I remember back to a post I saw once that : was the first part of a command in vi and q was to quit. Woohoo for my memory of VIM. Bad me for not listening to Trickykid earlier :(

Mara 06-07-2002 10:35 AM

That's why I don't know why there is usually only vim available by default...

jglen490 06-07-2002 01:03 PM

Quote:

I would suggest anyone using *nix to learn vi, first its available on about any *nix OS, second, there might be times when you only have vi or vim to use to edit any files.
I would amend that to say " ... anyone using *nix as a profession to learn vi, ... ". Beyond that there are any number of editors (jed, xjed, joe, and others) that are just as powerful and many times easier to use.

But that's just me :D !!


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