-------- Original Message --------
Subject: Re: automatic code completion in vim
Date: Sat, 30 Dec 2006 14:46:54 +0100
From: zhengda <[EMAIL PROTECTED]>
To: A.J.Mechelynck <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>

A.J.Mechelynck wrote:
zhengda wrote:
Hello,

I hope vim can run automatically a completion after a '.', '->' or '::' when I write c++ program. I know omnicppcomplete plugin can do this job. But omnicppcomplete needs tag database. So if I want omnicppcomplete to tell me members of a class, I have to keep updating the tag database even though I only make a little change. So is there other ways to do the completion? Or is there some way to let omnicppcomplete update the tag database automatically?

Zheng Da


The tagfile is created or updated by running (for instance) the Exuberant Ctags program. You can run it from a vim script or from the Vim command-line (using the ":!" command, q.v.); but if you run it every time you want to use omnicompletion, the time necessary for the update could be unbearable if your program has a large number of modules, like for instance the Vim source.

If the tagfile finds the tags by searching for them (as with the Vim helptags) rather than by going to a fixed line, then changes which add or remove program lines (but not tag definitions) will probably not require regenerating the tagfile.


Best regards,
Tony.

Yes, so are there any other good ways?
For example, is there a way to only update tags in some file which is
just modified and saved?
Or what omnicppcomplete does is senseless for code completion.

Zheng Da
----- End Original Message -----

I don't know; forward to list.

Next time, please use "Reply to All" or (if available) "Reply to List" but not "Reply to Sender".


Best regards,
Tony.

Reply via email to