bowles@is.s.u-tokyo.ac.jp (Eric E. Bowles) (07/02/90)
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 x4096lee@sq.sq.com (Liam R. E. Quin) (07/05/90)
bowles@is.s.u-tokyo.ac.jp (Eric E. Bowles) writes: >I'm glad that others have found the word completion macros to be useful. Very much so! I had used F? instead of 2h, but your fix is better because it does not affect the ; and , commands: > :map! ^K ^[a.^[bmmi?\<^[2h"zdt.@z^Mywmx`mPbea ^[dwbia^["zdt.x@z 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)]