Thursday, August 17, 2017

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

On Thu, Aug 17, 2017 at 6:02 PM, Jose Caballero <jcaballero.hep@gmail.com> wrote:
2017-08-17 16:15 GMT-04:00 Nikolay Aleksandrovich Pavlov <zyx.vim@gmail.com>:
> 2017-08-17 22:04 GMT+03:00 Jose Caballero <jcaballero.hep@gmail.com>:
>> 2017-08-17 14:51 GMT-04:00 Gary Johnson <garyjohn@spocom.com>:
>>> On 2017-08-17, Jose Caballero wrote:
>>>
>>>> In both cases, after trying a tag, :ts gives me the same, similar to
>>>>
>>>>    # 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):
>>>>
>>>> And, indeed, typing the number opens the right file, as it was
>>>> supposed to work with CTRL+]
>>>>
>>>> It is like the actual command CTRL+] is the one that is not working in
>>>> one of the hosts, but the tags information has been read by VIM and
>>>> it's reachable via :ts

Wait a minute.   I missed something here.

The results of :ts look reasonable, except that I would expect one row (probably the first) to be marked with ">" to the left of the "#" column.

Are you expecting to see the same thing from <C-]> (that is, CTRL-])?  If the cursor is on the word "StatusInterface", then <C-]> should work the same as ":tag StatusInterface", jumping to the line specified in the tags file.  It does not normally show the list of matching tags (like :ts).  If <C-]> is mapped to something non-standard, it is non-standard on the first host, not the second.

:help :tag
:help :tselect

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: