Martin Stubenschrott wrote: > On Sun, Jan 28, 2007 at 01:12:00AM +0100, Bram Moolenaar wrote: > > > Hope that gets added to the default vim 7.1 distribution, because it's > > > quite the best working omni complete script I have seen so far. > > > > Can you mention on what points cppcomplete.vim works better than the > > ccomplete.vim scripts? > > > > If it's overal better I can replace the script. > > First, it checks return types of functsion (where possible). > Lets assume this C code: > -------------------- > typedef struct POINT > { > int x; > float y; > } _POINT; > > > POINT func() > { > // POINT foo = ... > return foo; > } > > int main() > { > func().<c-x><x-o> > } > ------------------- > cppcomplete lists me: > x and y as members since func() returns a struct of type POINT. > > ccomplete does nothing but searching for a long time. I have a 125MB > tags file in /usr/include with --foldcase, but cppcomplete is instant, > and ccomplete takes some seconds, and still doesn't find something. > > Second, I am not sure, if ccomplete can follow typedefs, cppcomplete can. > > These are my main 2 concerns, and probably a unified codebase for c/c++ > completion is easier to maintain. But I have not worked with ccomplete > that much, so please check, if cppcomplete also works for your usage > szenarios when coding C.
OK. Which script are you talking about exactly? There are four script matches for "cppcomplete" on www.vim.org. -- hundred-and-one symptoms of being an internet addict: 65. The last time you looked at the clock it was 11:30pm, and in what seems like only a few seconds later, your sister runs past you to catch her 7am school bus. /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///