On Fri, 12 Mar 2010 18:19:14 +0100 Christophe-Marie Duquesne <[email protected]> wrote: > I don't use the same omnifunc as yours. Try this one: > set omnifunc=omni#cpp#complete#Main
Here's an honest to God wierd thing: initially, if I typed: prin and then control-p, I would get an "omni no match" message. So I just went on working. A little while later, I noticed I was getting auto-matches after declaring new STL objs & such, which is what I want. So I just now tried the "prin" ctrl-p again and whahoo -- it works. Maybe something has to trickle down here, but that's just dandy! > > Also: how do I prevent the "scratch" window from appearing? That is > > *extremely* irritating. > > You might want to remove "preview" from completeopt. > set completeopt=menu In the end I found this somewhere: autocmd CursorMovedI * if pumvisible() == 0|pclose|endif autocmd InsertLeave * if pumvisible() == 0|pclose|endif- which causes that window to close after you select. Yay. Thanks tho! Like many things vim, slightly frustrating at first, slick and functional later. -- MK <[email protected]> -- You received this message from the "vim_use" 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
