Path: utzoo!attcan!uunet!samsung!munnari.oz.au!mullian!dtau From: dtau@mullian.ee.mu.oz.au (David Au) Newsgroups: comp.editors Subject: vi, word completion Message-ID: <4772@munnari.oz.au> Date: 9 Jul 90 14:29:25 GMT Sender: news@cs.mu.oz.au Reply-To: dtau@mullian.ee.mu.OZ.AU (David Au) Organization: Dept. of Electrical Engineering, University of Melbourne Lines: 23 In article <745@utsun.s.u-tokyo.ac.jp> you write: >In other words, the ^K macro would be mapped in its entirety as: > > :map! ^K ^[a.^[bmmi?\<^[2h"zdt.@z^Mywmx`mPbea ^[dwbia^["zdt.x@z > == I believe someone has already pointed out this macro has a problem when there is text immediately to the right of the cursor. And that is a big problem because quite often you would want to insert text in the middle of a sentense. 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 cheers, David Au |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | David Au | ACSnet : dtau@mullian.ee.mu.oz | | Department of Elec Engineering | internet : dtau@mullian.ee.mu.oz.au | | University of Melbourne | uunet : uunet!munnari!mullian!dtau |