On Tue, 2002-10-01 at 11:37, Christopher Vance wrote: And the winner is...Christopher!
> :v/^#/s/^/#/ This one puts a hash at the start of every line including blank ones. > :g/^[^#]/s/^/#/ This one keeps the blank lines - nice ;-) Thanks :-) The other offerrings from Tony and Andrew, although they replied quicker, replaced the first character of every non-hash started line with a hash. Thanks guys! -- ************** * Simon Wong * ************** -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
