On Fri, Feb 19, 2010, gahn wrote:
>Hi, all:
>

>How could I use vi to repeat a word, say, 100 times in the same line, of
>course with a space in between?

Use a repeat count.  The following is generated by this:

20a thisword<ESC>

 thisword thisword thisword thisword thisword thisword thisword thisword 
thisword thisword thisword thisword thisword thisword thisword thisword 
thisword thisword thisword thisword

I use this frequently to generate sequences of characters when laying out
forms.

Bill
-- 
INTERNET:   b...@celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:          (206) 236-1676  Mercer Island, WA 98040-0820
Fax:            (206) 232-9186  Skype: jwccsllc (206) 855-5792

When we must wait for Washington to tell us when to sow and when to reap,
we shall soon want bread -- Thomas Jefferson
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to