vi editing
Chad Perrin
perrin at apotheon.com
Fri Jan 15 18:19:11 UTC 2010
On Fri, Jan 15, 2010 at 12:11:32PM -0600, J.D. Bronson wrote:
> preface each line:
>
> :%s/^/new word /g
The trailing g isn't needed because you only need one substitution on
each line. Thus:
:%s/^/new word /
--
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100115/2f249ff0/attachment.pgp
More information about the freebsd-questions
mailing list