Hello David, I see you're struggling with omnicppcompletion too :) I found this: autocmd FileType python set omnifunc=pythoncomplete#Complete autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS autocmd FileType html set omnifunc=htmlcomplete#CompleteTags autocmd FileType css set omnifunc=csscomplete#CompleteCSS autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags autocmd FileType php set omnifunc=phpcomplete#CompletePHP autocmd FileType c set omnifunc=ccomplete#Complete
I hope this will help you... On Dec 20, 2:10 pm, David Chanters <[email protected]> wrote: > Hi, > > If the answer to this is buried in the help files, please point me there. > > But I was wondering if its possible for omnicompletion to be more > cleverer than it is at the moment. For instance, if I have this: > > struct foo > { > char *name; > char *address; > int age; > > }; > > And I type: > > foo-> > > and then press ^n, it would be really cool if the completion menu > would list only name, address, and age. At the moment, it will list a > huge long list of things -- which don't relate to anything in the foo > struct. > > i hope that makes sense. :) > > TIA, > > David -- 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
