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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to delete a word from a file? ntgobinath Shell Programming and Scripting 4 06-04-2008 01:03 PM
Find a word and delete the line gsusarla UNIX for Dummies Questions & Answers 1 04-02-2008 11:45 AM
how to delete spaces around a word sachin.gangadha UNIX for Dummies Questions & Answers 8 12-05-2007 01:00 AM
Delete all occurence of a word in one shot namishtiwari Shell Programming and Scripting 6 08-24-2007 05:41 AM
Sed help to delete everything prior to WORD drheams Shell Programming and Scripting 2 12-09-2005 02:34 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 03-17-2006
Registered User
 

Join Date: Aug 2005
Posts: 229
annoying vi yank word + delete all question

Hello
when i try to yank word only that looks like this "$$foo$"
when i stand with my curser marker on the first char ($) and do in vi : "yw" (yank word)
its yanks me only the "$" char when i stand white my curser on "f" its yank's me only "foo"
how can i yank all word no matter what characters its build of .
second question again about vi
how can i delete all content of text file ?
thanks
Reply With Quote
Forum Sponsor
  #2  
Old 03-17-2006
Registered User
 

Join Date: Jan 2005
Posts: 682
1. $ is a word boundry
2. delete all content.
:%d
Reply With Quote
  #3  
Old 03-17-2006
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,614
y$ will yank to end of line
yW will yank white space delimited word
Reply With Quote
  #4  
Old 03-17-2006
Registered User
 

Join Date: Aug 2005
Posts: 229
ok so you saying i cand copy word with "$$$"?

thanks for the fast reply ,
by the way is there any good begginers forum like this one for vi only ?
thanks allot
Reply With Quote
  #5  
Old 03-20-2006
Registered User
 

Join Date: Mar 2006
Location: South Yorkshire, UK
Posts: 114
How about a good book - I used "Learning the Vi Editor" by Lamb and Robbins and published by O'Reilly. Comprehensive, well organised and quite easy reading. Soon gets you beyond the stage where the terminal bleeps every second key-press

cheers
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:16 PM.


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

Content Relevant URLs by vBSEO 3.2.0