Sample vi Editing Session

team bbl


This section describes a sample vi editing session. The file to be edited contains the following contents:

 One fith Two fish Red fishes Blue fish 

When the file opens, vi is in Normal mode. Type the following editing commands:

 /fith<Enter> ftrs 

The file now contains:

 One fish Two fish Red fishes Blue fish 

Type the following commands:

 2jlD        (l is lowercase L) 

The file now contains:

 One fish Two fish Red fish Blue fish 

Enter the following commands:

 :1<Enter> ddjp 

The file now contains:

 Two fish Red fish One fish Blue fish 

    team bbl



    Spring Into Linux
    Spring Into Linux
    ISBN: 0131853546
    EAN: 2147483647
    Year: 2005
    Pages: 362
    Authors: Janet Valade

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net