> Consider my cursor is on procName in the following line of tcl code:
>
> ::nameSpace::procName $var1 $var2 $var3
>
> If I were to hit <CTRL-]> to jump to the tag, it would attempt to find
> a tag named procName, which does not exist.
>
> If i type the command ":tag ::nameSpace::procName" - it jumps to the
> tag properly.
>
> Is there a way to tell vim to allow :: in the word under cursor?
:set isk+=:
See
:help iskeyword
> I would also like this to work for *, #, etc.
You can add other characters to the 'isk' in the same manner as :.
However, that affects vim's notion of a word in all circumstances,
so beware.
> Also - how to apply this to only tcl files?
Put the commands to set 'isk' for tcl files in a file named
~/.vim/after/ftplugin/tcl.vim.
In general you should use :setlocal rather than :set to set
buffer-local options, but 'isk' seems to be buffer-local by default.
Regards,
Gary
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment