Re: vi question

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


On 14Jul2010 16:54, fred smith <[email protected]> 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 <[email protected]> DoD#743

Live to Flame - Flame to Live - Flame to WIN
        - Lou Montgomery <[email protected]>
users mailing list
[email protected]
To unsubscribe or change subscription options:

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

  Powered by Linux