Obscure Vi bug?
~XT6561110~Marc Mengel~C25~M27~6184~
mmengel at cuuxb.ATT.COM
Sat Aug 4 07:51:15 AEST 1990
In article <rob.649040634 at dutncp8> rob at dutncp8.tudelft.nl (Rob Kurver) writes:
>In <618 at tetrauk.UUCP> rick at tetrauk.UUCP (Rick Jones) writes:
>> This happens in any macro using p or P
>>followed by other characters, all the subsequent characters get inserted, not
>>obeyed as commands.
>I've experienced the same problem with the ESIX version of vi. When used
>in a macro, p and P don't work correctly.
Having hacked on vi in the past, I would suspect this is yet
another buffer management bug; i.e. the buffer containing the
macro is being labeled as the "current" buffer for the p command.
You can *probably* work around this by using a named buffer, as
in
"ayyj"ap
instead of
yyjp
in your favorite macros, as the vi buffer code is notoriously
tough to make sense of...
--
Marc Mengel mmengel at cuuxb.att.com
attmail!mmengel
...!{lll-crg|att}!cuuxb!mmengel
More information about the Comp.unix.questions
mailing list