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] wrote: If you have a look at ftplugin

Detecting when in omnicomplete

2006-09-26 Thread Karl Guertin
I'm playing around with keybindings and omnicompletion and I'd like a special set of keybindings when pumvisible() and it's an omnicomplete match. I can mostly do this by setting a buffer variable in all my mappings that would cause me to enter/exit omnicomplete, but I keep missing edge cases. Is

Re: Detecting when in omnicomplete

2006-09-26 Thread David . Fishburn
keept it neat and tidy. HTH, Dave - Original Message - From: Karl Guertin [EMAIL PROTECTED] Sent: 09/26/2006 11:50 AM To: VIM Help vim@vim.org Subject: Detecting when in omnicomplete I'm playing around with keybindings and omnicompletion and I'd like a special set of keybindings when

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