[HINT]: ctags is not working for me

281 views
Skip to first unread message

Kunal Chauhan

unread,
Oct 12, 2020, 12:31:49 PM10/12/20
to vim...@googlegroups.com
Hi Team,

My tags are not working as I do the :

1. ctags -R * or ctags -R.
2. I used set tags? To see my current file tags location and set to set tags = ./tags,  etc means where i am in directory which contains tags.
3. Still not able to go to tags by pressing ctrl and bracket  button

Br,
Kc

Gary Johnson

unread,
Oct 12, 2020, 3:17:40 PM10/12/20
to vim...@googlegroups.com
You should see an error message telling either that the tag was not
found or that there is no tags file. Do you see an error message?

Regards,
Gary

Kunal Chauhan

unread,
Oct 12, 2020, 3:42:22 PM10/12/20
to vim...@googlegroups.com
>You should see an error message telling either that the tag was not
>found or that there is no tags file.  Do you see an error message?  

Gary,
I am not receiving any error while doing the cntrl +].




On 13 Oct 2020 00:47, "Gary Johnson" <gary...@spocom.com> wrote:
On 2020-10-12, Kunal Chauhan wrote:
> Hi Team,
>
> My tags are not working as I do the :
>
> 1. ctags -R * or ctags -R.
> 2. I used set tags? To see my current file tags location and set to set tags =
> ./tags,  etc means where i am in directory which contains tags.
> 3. Still not able to go to tags by pressing ctrl and bracket  button

7
Regards,
Gary

--
--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20201012191659.GA26885%40phoenix.

Gary Johnson

unread,
Oct 12, 2020, 6:11:46 PM10/12/20
to vim...@googlegroups.com
On 2020-10-13, Kunal Chauhan wrote:
> >You should see an error message telling either that the tag was not
> >found or that there is no tags file.  Do you see an error message?  
>
> Gary,
>
> I am not receiving any error while doing the cntrl +].

Kunal,

In a quick search of the web, I found that the causes of that
problem include using a non-English (perhaps non-US) keyboard, or
something remapping Ctrl-].

Does it work to search for the tag from your keyboard? That is, try
executing

:tag somekeyword

That should tell us if tags work at all and if the problem might be
with the Ctrl-] key combination.

You might try entering insert mode, typing Ctrl-V, then typing
Ctrl-], and seeing what appears. You should see

^]

usually in blue. Also, executing

:map <C-]>

will show you any mappings of that key.

Regards,
Gary

Kunal Chauhan

unread,
Oct 12, 2020, 6:33:47 PM10/12/20
to vim...@googlegroups.com
a quick search of the web, I found that the causes of that
problem include using a non-English (perhaps non-US) keyboard, or
something remapping Ctrl-].
Does it work to search for the tag from your keyboard?  That is, try
executing
    :tag somekeyword
That should tell us if tags work at all and if the problem might be
with the Ctrl-] key combination.
You might try entering insert mode, typing Ctrl-V, then typing
Ctrl-], and seeing what appears.  You should see
    ^]
usually in blue.  Also, executing
    :map <C-]>
will show you any mappings of that key.  


Thanks garry.  tags are working fine . but when I press ctrl-]  it wil show  [      in mapping of  ctrl ] it is showing d option but that is not working for me. 

--
--
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+u...@googlegroups.com.


--
Thanks with Regards!

Kunal Chauhan
Mob:09813614826
Mob:08860397903

Gary Johnson

unread,
Oct 12, 2020, 7:23:42 PM10/12/20
to vim...@googlegroups.com
On 2020-10-13, Kunal Chauhan wrote:
> a quick search of the web, I found that the causes of that
> problem include using a non-English (perhaps non-US) keyboard, or
> something remapping Ctrl-].
> Does it work to search for the tag from your keyboard?  That is, try
> executing
>     :tag somekeyword
> That should tell us if tags work at all and if the problem might be
> with the Ctrl-] key combination.
> You might try entering insert mode, typing Ctrl-V, then typing
> Ctrl-], and seeing what appears.  You should see
>     ^]
> usually in blue.  Also, executing
>     :map <C-]>
> will show you any mappings of that key.  
>
>
>
> Thanks garry.  tags are working fine . but when I press ctrl-]  it wil show  [ 
>     in mapping of  ctrl ] it is showing d option but that is not working for
> me. 

Hi Kunal,

I'm glad that much is working.

Under ":help map-listing in my Vim version 8.2.1704, there is no 'd'
option, so I don't know what you mean by that.

But, if when you type Ctrl-V Ctrl-] it shows [, then that may point
to the problem. Try executing this

:map Ctrl-V Ctrl-] <C-]>

where Ctrl-V and Ctrl-] are those literal keys. In other words,
type

:map

and a space, followed by the keys Ctrl-V and Ctrl-] followed by
another space, then the five characters

<C-]>

and hit Enter. That should map whatever your keyboard generates
when you type Ctrl-] to Vim's Ctrl-] command. After doing that,
typing Ctrl-] should jump to the tag.

Regards,
Gary

Reply all
Reply to author
Forward
0 new messages