Insert a NEWLINE character.

Aravind Gottipati aravind at kc.rr.com
Tue Sep 3 02:57:04 CDT 2002


oops, 
    sorry, scratch that first method.  Wont work in vim.  The second one
works for sure!

bye
Aravind
 
p.s:  Yes, I will test my solutions before I send them out next time.

sometime around Mon, Sep 02, 2002 at 10:07:56PM -0500
Aravind Gottipati wrote:
> 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)

-- 
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