Re: vi question

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

 



On 14Jul2010 16:54, fred smith <fredex@xxxxxxxxxxxxxxxxxxxxxx> wrote:
| On Wed, Jul 14, 2010 at 10:26:25AM -0700, Mike Wright wrote:
| > Will somebody tell me the symbol to use for a linefeed in substitutions 
| >   as in
| > 	:s1,$#</tag>#</tag>linefeed#g
| 
| in vi: ^V^M, or maybe ^V^V^V^M. Try the first then if it doesn't do what
| you want, try the second.

The former; Mike should get a literal ^M in the substiution command.

The latter (^V^V^V^M) I have used in macro definitions to get ^V^M into
the macro, to get the ^M when the macro runs:-)
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

Live to Flame - Flame to Live - Flame to WIN
        - Lou Montgomery <lm8637@xxxxxxxxxxxxxx>
-- 
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