LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-21-2003, 12:47 PM   #1
kbeaver
Member
 
Registered: Jul 2003
Location: Lakewood, CO
Distribution: SuSE 8.2
Posts: 41

Rep: Reputation: 15
Editing with VI and SuSE


Hello,
I just installed SuSE 8.2, and I need to use an editor. I like VI because I can use it at work on my machine at home, but whenever I use VI now, I cannot edit anything that was already in the file. Say I have a file that has text in it. If I use VI from home or work, I cannot delete or change anything that was already in the file, I can add new text, then edit the new text, as long as I don't close VI. Any ideas?
 
Old 10-21-2003, 12:50 PM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Are you asking how to save? I think the command is just 'w'.
 
Old 10-21-2003, 01:09 PM   #3
kbeaver
Member
 
Registered: Jul 2003
Location: Lakewood, CO
Distribution: SuSE 8.2
Posts: 41

Original Poster
Rep: Reputation: 15
No, I literally cannot change text within the file. Say I have "#include <iostream.h>" and I want to change the library to just "<iostream>" I cannot delete the .h portion. I can put my cursor there, but the backspace button will do nothing (I am in insert mode).
 
Old 10-21-2003, 01:28 PM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Sometimes I get that problem in an xterm window. Doesn't happen on a regular console.
 
Old 10-21-2003, 02:07 PM   #5
vivekiyer
Member
 
Registered: Aug 2003
Location: AZ, USA
Distribution: Redhat 9.0
Posts: 45

Rep: Reputation: 15
Hmm from the looks of it you are trying to modify a file you do not have permission to modify. I am sorry if I am wrong. Try to su to root and edit the file. Else go ahead and chmod the file and try to edit it
 
Old 10-21-2003, 02:16 PM   #6
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
Try using x instead of the backspace key. (in control mode) Some Unix systems won't let you erase anything you didn't just type with the backspace key in insert mode...
 
  


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
Suse Textmaker lost all editing when saving suguru SUSE / openSUSE 0 11-16-2005 06:47 PM
Editing xorg.conf on Suse 9.2 w/ ATI Mob. 9700 Dell Inspiron 9200 elliotfuller Linux - Hardware 5 04-28-2005 09:24 AM
Editing Grub on SUSE 9.2 NewToLinuxOS SUSE / openSUSE 3 03-16-2005 09:36 AM
KDE Menu Editing, SuSE 9.1 Professional bmschkerke Linux - Software 3 11-06-2004 10:27 PM
Editing text file in Shell - Konsole (SuSE 9.1) Ree Linux - Newbie 5 10-03-2004 11:48 AM

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

All times are GMT -5. The time now is 05:20 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