Re: vim question - comment multiple lines

From: MKlinke (mklinke_at_axsi.com)
Date: 09/10/03

  • Next message: Stephen Kuhn: "Re: linux in windows environment for file serving"
    To: redhat-list@redhat.com
    Date: Tue, 9 Sep 2003 23:55:41 -0500
    
    

    On Tuesday 09 September 2003 22:17, Herculano de Lima Einloft Neto
    wrote:
    > I guess this is an easy one.. how can I insert / delete something
    > at the beggining of each line of a block in vi? Still can't figure
    > it, though there must be at least ten ways.
    >
    > Thanks in advance

    1 of 10 ...

    Place cursor at the beginning of the first line you want to change.
    Press <CTRL>v
    Move the cursor down to the last line you want to change.
    Press I (The capital letter after H and before J)
    Type in the text you wish to insert
    Press <ESC>

    Now all lines selected should show the inserted text.

    Regards, Mike Klinke

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Stephen Kuhn: "Re: linux in windows environment for file serving"

    Relevant Pages

    • vim question - comment multiple lines
      ... the beggining of each line of a block in vi? ... Herculano de Lima Einloft Neto ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
      (RedHat)
    • Re: vim question - comment multiple lines
      ... On Tue, 2003-09-09 at 23:17, Herculano de Lima Einloft Neto wrote: ... > the beggining of each line of a block in vi? ... # search/replace "string2" for "string1" at beginning of all lines ...
      (RedHat)
    • Re: vim question - comment multiple lines
      ... On Tue, 2003-09-09 at 23:55, MKlinke wrote: ... >> at the beggining of each line of a block in vi? ... > Place cursor at the beginning of the first line you want to change. ... I did not know about ctrl-v - visual block mode Insert mode. ...
      (RedHat)