The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-07-2004
Registered User
 

Join Date: Jan 2004
Posts: 27
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
a little help with vi

I've come to like vi, but I am plagued by not being able to delete characters. I can delete lines with the ":delete" command but I can't find a way to delete single characters. anybody know?????

my other problem is that when I reopen a file with vi and try to edit a line, it wont overwrite characters, it just adds the character i typed and pushes the others forward. When I create new lines it overwrites any characters i want, but not editing the old line. Is there a way to turn on overwrite or something?

(in case my system info matters for either of those questions, I run macosx and a tcsh shell)

Thanks, Blip
Forum Sponsor
  #2 (permalink)  
Old 01-07-2004
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,381
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Type x in command mode to delete character.

Type R in command mode to enter replace mode.
  #3 (permalink)  
Old 01-07-2004
Registered User
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
if your using vim i believe you can also use the delete and insert keys aswell. (although this defeats the purpose of vi to begin with, it does make it easier to pick up.)
  #4 (permalink)  
Old 01-07-2004
oombera's Avatar
Have a day :|
 

Join Date: Aug 2002
Location: Cleveland, OH
Posts: 804
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Try http://www.thomer.com/vi/vi.html from a past thread, or just search google: http://www.google.com/search?q=unix+vi+tutorial
  #5 (permalink)  
Old 01-10-2004
Registered User
 

Join Date: Jun 2003
Posts: 1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
There is also a lot of documentation (including a 500+ book in PDF) at http://www.vim.org/docs.php.
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:41 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101