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