LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-31-2006, 08:13 PM   #1
Ceyarrecks
LQ Newbie
 
Registered: Jul 2003
Location: PA
Posts: 2

Rep: Reputation: 0
Open VI?


I am having a difficult time finding how to OPEN a file already created with the command "vi BusinessAssociates"

I see I have a file by the name BusinessAssociates.swp.
in attempting to open in the way that rather made sense:
"vi BusinessAssociates.swp"

renders me this:

[root@Home-1 temp]# ls -a
. .. .BusinessAssociates.swp .BusinessAssociates.swp.swp
.PeronalAssociates.swp .swo .swp
[root@Home-1 temp]#

so exactly how does one *open* said file?

or does the . that proceeds the file name need to be included?

thanks
Cey

(yes, i know i am shown logged in as root, was on purpose for the task attempted)
also, if important or not, am using Fedora Core 4
 
Old 01-31-2006, 08:28 PM   #2
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
yes, the '.' in front needs to be included. The '.' makes the file hidden, so if you just type
Code:
vi BusinessAssociates.swp
it'll open a new file.
 
Old 02-01-2006, 12:23 AM   #3
DarkElf109
Member
 
Registered: Dec 2005
Location: Phoenix, AZ
Distribution: Ubuntu, Debian, Gentoo
Posts: 43

Rep: Reputation: 15
If all you have are swp files, which are used for when vi crashes, you may not be using vi properly. To exit vi, the command :q is given. To save, :w . To quit and save, :wq , and to quit WITHOUT saving is :q! (yes, include the '!'). By using these instead of whatever you were using before, you'll get proper saves of your files.
 
Old 02-01-2006, 03:37 AM   #4
sohny
Member
 
Registered: Aug 2004
Location: bangalore
Distribution: Redhat,Ubuntu
Posts: 64

Rep: Reputation: 15
yes there are only swap files there . wat u can do is open tat swap in this way

vi .BusinessAssociates.swp

then when vi opens, type the following

:w BusinessAssociates

the colon is important

that will save the file in the way u want
 
  


Reply



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
how to open files from a network server from open office or any apps reycapoy Linux - Software 4 01-26-2006 07:00 PM
LXer: Open-Xchange Hires Open Source Expert as Executive Vice President of Marketing Strategy LXer Syndicated Linux News 0 01-18-2006 10:31 PM
LXer: Survey: Open source developers jump on bugs, open to closed tech LXer Syndicated Linux News 0 12-21-2005 01:46 PM
LXer: Germany's Green Party Selects Open-Xchange For Advanced Open Source Collaboration LXer Syndicated Linux News 0 12-09-2005 10:16 PM
Evolution - open word docs with open office (not KWord) bcarl314 Mandriva 1 06-11-2005 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:31 AM.

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
Open Source Consulting | Domain Registration