Re: [OT] vi question

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

 



On Wed, 2010-07-14 at 13:48 -0700, Mike Wright wrote: 
> 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
> >>
> >> tia,
> >> Mike Wright
> > 
> > Type control-V control-M.
> 
> Thanks, Sjoerd, for the reply but that didn't work for me.
> 
> When I entered Ctrl-V as part of the substitution line 1 of the document 
> was inserted at the end.  Then when I pressed "u" to undo it it proudly 
> announced that 195 lines had been deleted.
> 
> I've done this many times before but I just can't remember how I did it :(
> 
> Thanks again,
> Mike

:1,1s/crtl-Vctrl-M//g
--
=======================================================================
When bad men combine, the good must associate; else they will fall one
by one, an unpitied sacrifice in a contemptible struggle. - Edmund Burke
=======================================================================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam@xxxxxxxxxxxxx

-- 
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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux