Path: utzoo!attcan!uunet!aplcen!haven!ames!sun-barr!ccut!s.u-tokyo!bowles From: bowles@is.s.u-tokyo.ac.jp (Eric E. Bowles) Newsgroups: comp.editors Subject: vi word completion, another fix Keywords: vi, word completion Message-ID: <745@utsun.s.u-tokyo.ac.jp> Date: 2 Jul 90 07:08:42 GMT Sender: news@s.u-tokyo.ac.jp Distribution: comp Organization: CS Department, University of Tokyo, Japan Lines: 30 I'm glad that others have found the word completion macros to be useful. Tanaka Tomoyuki has kindly pointed out that the ^K (kompletion) macro exhibits strange behavior if used immediately after a `(' or `.' For example: recordname.fiel^K ^----- completion attempted for word succeeding a period. func_name(argu^K ^------- this time it's after a parenthesis. The way to fix this problem is to change the ^K macro as follows: * The second `b' should be replaced with `2h' (two characters backward). 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 == (This version also reflects the improvements by L. Quin and S. Mullender.) =============================================================================== Eric Edward Bowles Dept of Information Science, Faculty of Science University of Tokyo, 7-3-1 Hongo, Bunkyo-ku bowles@is.s.u-tokyo.ac.jp Tokyo, JAPAN 113. +81-3-812-2111 x4096