On 28 Mar, Tiwari, Rajnish wrote:
>       How do I load a tags file into vim/gvim once I 
>       have loaded a c/c++ file ?  

Hmm, if you had a file called .tags in the current directory, then it
was automatically used when you used a tag command. (*)

But it looks like there's now also a set option like this:

:tags tagfile1 tagfile2 ...

if I read the man page correctly.

You create the tags file with the ctags command.  I've had problems
with ctags/vi compatibility on occasion, which usually relates to the
tag file format not being understood by the vi version, usually due to
extra fields in the tags file (like a comment at the end of each line,
for example).

luke

(*)

I have a script that creates a tags file in each directory in a source
tree, merges them all together, changes the file pathname to be the
absolute pathname for it, and then hard links them all together, so that
you can jump from any symbol to any other, anywhere in the source tree. 
Quite handy.

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to