[lug] Adding newline in vi

John Starkey jstarkey at advancecreations.com
Fri Aug 17 23:22:05 MDT 2001


Hello.

I need to add a newline, or want to, in vi at a common spot (same character each time). Not sure what to feed it using substitute.

I tried:

:%s/N/\nN/g

But well.... :}

I've got a file that's a one liner but should be about 500.

Anyone know how to do this?

TIA,

John

-- 
John Starkey
ColoradoParks.net
Advance Creations



More information about the LUG mailing list