Tuesday, August 15, 2017

Re: does VIM read OK the tags file if ctags was installed after VIM?

On Tue, Aug 15, 2017 at 4:42 PM, Jose Caballero <jcaballero.hep@gmail.com> wrote:
Thanks Ben and Erik.

Both tags files are identical:

    host1 $ md5sum tags
    34e5413f4dea1c0644b35de7808a8029  tags

    host2 $ mad5sum tags
    34e5413f4dea1c0644b35de7808a8029  tags

Also tags are equal:

   :set tags?
    tags=./tags,./TAGS,tags,TAGS


But, when hitting CTRL+] on top of a tag....

    @ host1 I get the expected

   # pri kind tag                 file
      1 F C i    StatusInterface  plugins/status/Plugin.py
                   from interfaces import StatusInterface
      2 F   c    StatusInterface  interfaces.py
                   class StatusInterface(object):


    @ host 2, I get something like "tag 1 of 2 or more", and that's it.

Both host have VIM 7.4.160

Huh?

Cheers,
Jose

That seems odd.  I think that my first suggestions would have been the same as Ben and Erik's.

Does :ts help clarify the situation?

:help :tselect

It seems that the message about the number of tags only shows up if there is no other message.  Often, a tag command takes you to a new file, so you get a message about entering that file instead.  See

:help tag-matchlist

and scroll past the various commands, or :help :ltag and scroll just a little bit.

When there is no other message, Vim shows which matching tag has been jumped
to, and the number of matching tags: >
tag 1 of 3 or more
The " or more" is used to indicate that Vim didn't try all the tags files yet.
When using ":tnext" a few times, or with ":tlast", more matches may be found.
When you didn't see this message because of some other message, or you just
want to know where you are, this command will show it again (and jump to the
same tag as last time): >
:0tn

HTH
-- 
Benji Fisher

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: