Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] Re: vi: how to insert line breaks?



On Fri, 04 Oct 2002 15:11:32 +0900
"Jean-Christian Imbeault" <jean_christian@example.com> wrote:

> I've searched ed/vi docs but can't find ...
> 
> How can I go a global search and replace in ed/vi to insert a line break? 
> I'm trying to do this for an HTML file, but I'd like to know how to do it in 
> general.
> 
> I've tried:
> 
> s/<br>/\\n/g
> 
> But all that does is put a literal "/n", not a line break ...
> 
> Thanks,

I don't know original ed/vi :-p
on Vim
:%s/<BR>/<C-V><C-M>/g
on nvi-m17n
:1,$s/<BR>/<C-V><C-M>/g
Control + v , after Control + m
and g(lobal) option

> 
> Jc
> 
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>  


-- 
-------------------------------------------------------
    smoker<smoker@example.com>
             <smoker@example.com>
        ashtray     [http://smokerz.net/~smoker/]
        smokerz     [http://smokerz.net/]
        smokin'room [http://smokerz.zone.ne.jp/]
        szproject   [http://szproject.sourceforge.jp/]
    PGPFingerPrint:
    7459 3B1F CDFF 1F86 37CA  BF8A E106 D26E 3CC6 32C2
-------------------------------------------------------


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links