I was trying to reproduce an issue I've been having in a minimal config, and failed to reproduce it reliably, but ended up finding what looks like a new issue. Perhaps they are related.
First, the issue I was *trying* to reproduce: Sometimes while using a completion menu, either Eclim's user-completion these days, or the built-in omni-completion for C code in the past, the menu will inexplicably disappear. Completion is still active even without the menu displayed, as evidenced by: 1. "-- User defined completion (^U^N^P) match X of Y" displayed at bottom of screen. 2. Preview window open with the 'info' element of the current completion item (I have completeopt set to "menuone,preview"). 3. Pressing <C-N> or <C-P> or <Up> or <Down> changes the preview window text and the value of X in the string displayed at the bottom. This issue seems to occur more frequently if I have multiple windows open in the same tab page, or if the completion menu is very wide. But today I encountered the issue with only a single window open. Sometimes as I cycle through completion items, the completion menu flashes on long enough to see the color and the text, but too fast to actually read the text before it goes away. Now for the problem I could actually reproduce. It is different enough that I doubt the two are related, but maybe I'm lucky: Start Vim with gvim -N -u NONE -i NONE. Source the attached script in an empty buffer and start user completion by pressing <C-X><C-U>. The completefunc set up by the script will sleep for about a second between adding matches (calling complete_check() every 250ms). Wait for the entire list to show up (20 items) and then press <Down> and <Up> to cycle through items in the list. Accept any item, then press cc<C-X><C-U> to clear the line and try again. This time, don't wait for the full list. Immediately press <Down> as soon as the first few entries show up. For me, the first item in the list is selected and completion ends. If I use <C-N> or <C-P> instead of <Up> or <Down> the menu stays open, but as soon as I use either <Up> or <Down> before the list finishes building, the menu closes with whatever item is currently selected. I'm on Windows XP 64-bit, using "Vim without Cream": VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Apr 30 2012 14:21:53) MS-Windows 32-bit GUI version with OLE support Included patches: 1-514 Compiled by [email protected] Huge version with GUI. -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
testbadcompletion.vim
Description: Binary data
