ctrl-] is not working for tcl code navigation

隐身守侯 提交于 2019-12-05 09:52:57
Manoj Srivatsav

Found a work around for my problem:

The tags file that generated contained tags in the format namespace::function.

I just removed namespace:: from generated tags file.
Now Ctrl + ] works!!!

Vim said he can't find the tags you generated.

Add set tags=./tags,tags; in your .vimrc and try again.

Try:

:set isk+=:

Seems like ":" doesn't get recognized as a codeword by default.

To make this work every time, add the line to your '~/.vimrc'.

Source: http://vim.1045645.n5.nabble.com/How-to-have-vim-recognize-in-cursor-for-tcl-namespaces-tp1163540p1163541.html

Your .vimrc should have the following line

set tags=tags;/

Paste it, save, restart vim and you're golden.

What keyboard layout are you using? I'm not familiar with your particular problem, but I've had problems with Ctrl+] on a Swedish keyboard when navigating the help pages.

There, Ctrl+] doesn't work for me (probably since ] is typed with Altgr+9). However, Ctrl+ 'key to the left of Enter' works (which is where ] is located on an English keyboard layout).

I can add that for my problem with the help pages I first tried to map Ctrl+] to another combination, but this still didn't work (not sure why). So if you are having the same problem, remapping might not solve the problem.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!