Newsgroups: comp.editors Path: utzoo!sq!lee From: lee@sq.sq.com (Liam R. E. Quin) Subject: Re: vi, word completion Message-ID: <1990Jul10.151510.17011@sq.sq.com> Organization: SoftQuad Inc. References: <4772@munnari.oz.au> Date: Tue, 10 Jul 90 15:15:10 GMT Lines: 23 dtau@mullian.ee.mu.OZ.AU (David Au) writes: >The following is a slight improvement on the previously posted >macro, but may be someone out there has a better solution: > >map! a. bbmmi?\<2h"zdt.@z >map! a. bbdw`xnywmx`mPbea dwbis"zdt.x@z >map! a. bbdw`xNywmx`mPbea dwbis"zdt.x@z This is not an improvement at all. It is a syntax error. :-( The trick when posting these things is to use the two-character representation with a caret (^) -- ^K, ^[, etc., rather than the actual control character. If you don't do this, the network strips out most of the control characters, and the vi macros don't work any more.... I'm not able to reconstruct this exactly, so I don't know if it's better, but the "bb" near the beginning concerns me -- better to use 3h or 2h (which depends on the missing control chars I think) -- in case there was punctuation immediately to the left. Lee -- Liam R. E. Quin, lee@sq.com, {utai,utzoo}!sq!lee, SoftQuad Inc., Toronto ``Sun. n.s., Any thing eminently splendid'' [Johnson's dictionary (1837)]