Obscure Vi bug?

Liam R. E. Quin lee at sq.sq.com
Fri Aug 3 05:34:51 AEST 1990


josef at nixpbe.UUCP (Moellers) writes:
>lester at ingr.com (Lester Bartel) writes:
>>I cannot seem to make the | (pipe) work in a macro.

>The problem is, that the bar (|) is a meta character "in the command
>line" [...]  You can write "map a b | map c d"
>Unfortunately, there is no way of escaping the bar, like escaping the
>brackets ([]) by prefixing a backslash.

Actually, from vi,
	:map g 70^V^V|
works fine.  (type control-V, not ^V)

It is tricky deciding when to use \ and when to use ^V, and how many of
each to use, even if you understand the rules.

Lee
-- 
Liam R. E. Quin,  lee at sq.com, {utai,utzoo}!sq!lee,  SoftQuad Inc., Toronto
``He left her a copy of his calculations [...]  Since she was a cystologist,
  she might have analysed the equations, but at the moment she was occupied
  with knitting a bootee.''  [John Boyd, Pollinators of Eden, 217]



More information about the Comp.bugs.sys5 mailing list