Insert a NEWLINE character.

Aravind Gottipati aravind at kc.rr.com
Tue Sep 3 02:52:55 CDT 2002


Hi,

    This works in vim, not sure about other vi flavours.

%s/^REF/<CR>REF/

This should work in most vi's

%s/^REF/
REF/

thats a CTRL-M

HTH
aravind

sometime around Mon, Sep 02, 2002 at 08:35:36PM -0500
Jonathan Hutchins wrote:
> Ok, I have a text file where the line breaks got stripped, but each line
> that needs to break begins with the same sequence.  How do I tell vi "find
> 'REF' replace with '<CR>REF'?
> 
> 

-- 
Let me put it this way: today is going to be a learning experience
                                           -- Anonymous
                                             (seen on slashdot)




More information about the Kclug mailing list