问题描述
我是 Tcl/Tk 的新手,我正在使用 Vim 进行编码和浏览.Tcl/Tk 的语法突出显示工作正常.使用 跳转到函数不起作用,它给我一条消息,说cstag: tag not found
".我已经安装了 ctags 并使用ctags -R *.tcl
"生成了标签.我在 Tcl/Tk 代码中广泛使用了名称空间.标签文件中生成的标签类似于namespace1::function1
".
I am new to Tcl/Tk, I am using Vim to code and browsing. The syntax highlighting for Tcl/Tk is working fine. The jump into the function using doesnt work it gives me an message saying that "cstag: tag not found
". I have installed ctags and generated tags using "ctags -R *.tcl
". I have extensively used namespaces in Tcl/Tk code. The tags generated in tags file is something like this "namespace1::function1
".
我如何让 (和 从堆栈中弹出)在 Vim 中工作?
How do i get (and for popping from stack) working in Vim?
跳转函数可以是下面两种格式中的任何一种
The function to jump could be in either of the 2 formats shown below
function1
namespace1::function1
推荐答案
尝试:
:set isk+=:
似乎:"在默认情况下不会被识别为代码字.
Seems like ":" doesn't get recognized as a codeword by default.
要每次都进行此操作,请将这行添加到您的~/.vimrc"中.
To make this work every time, add the line to your '~/.vimrc'.
这篇关于ctrl-] 不适用于 tcl 代码导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!