> -----Original Message----- > From: Karl Guertin [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 26, 2006 4:10 PM > To: [EMAIL PROTECTED] > Cc: VIM Help > Subject: Re: Detecting when in omnicomplete > > On 9/26/06, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > If you have a look at ftplugin/sql.vim it does this. > > sql.vim does have different functionality based on whether > the popup menu is visible or not, but I don't see where it > distinguishes between omnicomplete and keyword completion. > E.g. if you hit <C-n><C-Right> on windows, you still attempt > to drill down instead of doing <C-Right>.
That is right, since <C-Right> does not actually do anything when the completion window is open, I assume you wanted to perform the drill down and show the column list for the table highlighted in the current table list. I am not sure if it is possible to determine why the popup window is displaying (<C-X><C-O> vs <C-X><C-N>). Dave