Hello Vim developers, I've tried to implement a user defined completion function with an 'info' field for the items. I prefer the Preview window to be on the right side rather than above the current window, so after one completion I used <CTRL-W>-H to move the main window to the left. Now, if I try to complete a word on the first line, the completion menu is not displayed. I believe the problem is because the menu is now trying to be opened above the current line (Why?) and it has no room when the line is at the top of the window.
To reproduce this behavior you can take the CompleteMonths() function example from the help file and change it to return a dictionary (for the 'info' field) instead of a list of words (the modified function is attached). vim -u NONE :source preview.vim (file is attached) iJ<C-X><C-U> - you should see the menu with 3 items [Jan, Jul, Jun] <C-E> - abort the completion <ESC><C-W>H - move the window to the left a<C-X><C-U> - return to insert mode and call complete func for 'J' again -- No menu displayed! Sorry for the long description :) Tested on Vim 7.4, Windows and Linux. Thanks, Ramel -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
preview.vim
Description: Binary data
