Annotation of 42BSD/usr.lib/learn/editor/L18.2a, revision 1.1

1.1     ! root        1: #print
        !             2: Once in a while you want to add text just before
        !             3: a certain line, rather than just after it.  For this purpose
        !             4: there is a command 'i' (insert) which is just like 'a'
        !             5: except that the new material goes before the addressed line,
        !             6: instead of after it.  For example,
        !             7:   3i
        !             8: is the same as
        !             9:   2a
        !            10: Try this sequence, which prints the editor buffer before
        !            11: and after the insertion, to see what happens.
        !            12: 
        !            13: ex cars
        !            14: 1,$p
        !            15: 3i
        !            16: lincoln
        !            17: chevrolet
        !            18: .
        !            19: 1,$p
        !            20: wq
        !            21: ready
        !            22: #create Ref
        !            23: ford
        !            24: mercury
        !            25: lincoln
        !            26: chevrolet
        !            27: buick
        !            28: pontiac
        !            29: oldsmobile
        !            30: #create cars
        !            31: ford
        !            32: mercury
        !            33: buick
        !            34: pontiac
        !            35: oldsmobile
        !            36: #user
        !            37: #cmp cars Ref
        !            38: #log
        !            39: #next
        !            40: 18.2c 7
        !            41: 18.3a 3

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.