[OT] vi question

Michael Hennebry hennebry at web.cs.ndsu.nodak.edu
Thu Jul 15 02:28:37 UTC 2010

On Wed, 14 Jul 2010, Sjoerd Mullender wrote:

> On 2010-07-14 21:19, Michael Hennebry wrote:
>> On Wed, 14 Jul 2010, Sjoerd Mullender wrote:
>>> On 2010-07-14 19:26, Mike Wright wrote:
>>>> Hi all,
>>>> I'm wasting a lot of time (probably because of a brain fart) googling
>>>> for this.
>>>> 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

>>> Type control-V control-M.
>> That would be carriage return.
>> convrol-V control-J might work.
>> You might not be able to substitute a linefeed with vi.
>> I think sed can do it.
> I know it's a carriage return.  Did you try it?  If not, do.  Linefeed
> (control-J) doesn't work.

Much to my surprise,
control-V control-M appeared to work on vim for Windows, as did \r.
I haven't checked to see what actual bytes went into the file.
That control-V control-J failed did not surprise me.

Michael   hennebry at web.cs.ndsu.NoDak.edu
"Pessimist: The glass is half empty.
Optimist:   The glass is half full.
Engineer:   The glass is twice as big as it needs to be."

More information about the users mailing list