vi question
Cameron Simpson
cs at zip.com.au
Wed Jul 14 21:41:37 UTC 2010
On 14Jul2010 16:54, fred smith <fredex at fcshome.stoneham.ma.us> 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 at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/
Live to Flame - Flame to Live - Flame to WIN
- Lou Montgomery <lm8637 at tnessd.sbc.com>
More information about the users
mailing list