![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
1. $ is a word boundry
2. delete all content. :%d |
|
#3
|
||||
|
||||
|
y$ will yank to end of line
yW will yank white space delimited word |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
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 |
|||
| Google The UNIX and Linux Forums |