ctrl-] 不适用于 tcl 代码导航 [英] ctrl-] is not working for tcl code navigation

查看:35
本文介绍了ctrl-] 不适用于 tcl 代码导航的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Tcl/Tk 的新手,我正在使用 Vim 进行编码和浏览.Tcl/Tk 的语法突出显示工作正常.使用 Ctrl] 跳转到函数不起作用,它给我一条消息,说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 Ctrl] 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".

我如何让 Ctrl](和 CtrlT 从堆栈中弹出)在 Vim 中工作?

How do i get Ctrl] (and CtrlT for popping from stack) working in Vim?

跳转函数可以是下面两种格式中的任何一种

The function to jump could be in either of the 2 formats shown below

  1. function1
  2. 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'.

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

这篇关于ctrl-] 不适用于 tcl 代码导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆