RE: Detecting when in omnicomplete

2006-10-02 Thread David Fishburn
> -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]&

Re: Detecting when in omnicomplete

2006-09-26 Thread Karl Guertin
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

Re: Detecting when in omnicomplete

2006-09-26 Thread David . Fishburn
If you have a look at ftplugin/sql.vim it does this. I override the ctrl-left|right keys. When pumvisible() is false I want to do the default Vim behaviour. When it is true I want to perform special SQL actions. I was only able to do this via a mapping which called a function. But that does k