* Herculano de Lima Einloft Neto <[EMAIL PROTECTED]> [2003-09-09 17:21]:
>   
>   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
> -- 
> Herculano de Lima Einloft Neto <[EMAIL PROTECTED]>

You could also use 'q' to record all your keystrokes and then recall
them. For instance, to add a single space in front of all lines in a
text block, you could move your cursor to the first line, type 'qa' to
start recording, then type

ctrl-I
<space>
<esc>
j

and then 'q' to stop recording. Now move the cursor to the next line
down and type '@a' and the whole process will be repeated. Add a number
to specify how many times you want to repeat the process, e.g. '[EMAIL PROTECTED]' to
do this for four lines.

-- 
Marc Adler


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to