Starting with :help omni-completion showed me what I was looking for.
Thanks, --Suresh > -----Original Message----- > From: Eric Arnold [mailto:[EMAIL PROTECTED] > Sent: Sunday, May 07, 2006 8:24 AM > To: Suresh Govindachar > Cc: firstname.lastname@example.org > Subject: Re: Enhanced "inputdialog()" as for input mechanisms > of i_CTRL-N, z= etc. > > I'm not sure I understand. Have you looked at writing you own > [omni]completion function? > > On 5/7/06, Suresh Govindachar <[EMAIL PROTECTED]> wrote: > > > > On May 06, 2006, I asked: > > > > > ... how to access the user-input mechanisms used > > > by i_CTRL-N, z=, i_CTRL-X_CTRL-S etc. from within VimL? > > > > I found out how to access the z= mechanism; for example: > > > > let index = 0 > > let b=['Select word:'] > > for item in spellsuggest('fooey', 10) > > let index += 1 > > let b += [printf("%2d. %s", index, item)] > > endfor > > let correct=inputlist(b) > > > > But I still do not know how to access the mechanisms used > > by i_CRTL-N and i_CTRL-X_CTRL-S -- I mean the mechanism > > that pops up a list of selections near the cursor itself. > > How does one access that? > > > > --Suresh > > > >