Re: [OT] vi question

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

 



On Wed, 2010-07-14 at 16:09 -0700, Mike Wright wrote:
> Rodolfo Alcazar Portillo wrote:
> > On Wed, 2010-07-14 at 10:26 -0700, Mike Wright wrote:
> >> I'm using Zend_Framework to generate some html which it unfortunately 
> >> does as one giant line.  I'm pretty sure it has an error but can't find 
> >> the missing/extra tag without formatting the html with line feeds.
> >>
> >> Will somebody tell me the symbol to use for a linefeed in substitutions 
> >>   as in
> >> 	:s1,$#</tag>#</tag>linefeed#g
> > 
> > You mean \r ?
> 
> Eres mi heroe.

/me sparks!

> That is the solution.

Inside vi, \r means carriage-return, could be written as
[CTRL-V]+<ENTER>, or as someone pointed, [CTRL+V][CTRL+M], depending on
the terminal, AFAIK; the well known "\n" does not make a newline, but a
NULL character, which does not break the line... 

Good luck.
----------------------------------------------
Rodolfo Alcazar Portillo - nospaze@xxxxxxxxx
otbits.blogspot.com / counter.li.org: #367962
----------------------------------------------
f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux