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
".
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
function1
namespace1::function1
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!!!
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With